mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix a minor bug that prevents NEWBUS users from setting more than
one memory map. The memory window for the PCIC is identifed by the resource id for NEWSBUS drivers. pccardd always uses window 0 and rid 0 when setting maps up. This fix does not affect pccardd's handling of common memory for ed cards. Reviewed by: imp
This commit is contained in:
parent
dbbd9a3121
commit
25522b4ef4
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ pcic_memory(struct slot *slt, int win)
|
|||
{
|
||||
struct pcic_slot *sp = slt->cdata;
|
||||
struct mem_desc *mp = &slt->mem[win];
|
||||
int reg = mp->window * PCIC_MEMSIZE + PCIC_MEMBASE;
|
||||
int reg = win * PCIC_MEMSIZE + PCIC_MEMBASE;
|
||||
|
||||
if (mp->flags & MDF_ACTIVE) {
|
||||
unsigned long sys_addr = (uintptr_t)(void *)mp->start >> 12;
|
||||
|
|
|
|||
Loading…
Reference in a new issue