Changes in kernel/arch/mips32/src/mm/frame.c [bab75df6:f5dd4a1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mm/frame.c
rbab75df6 rf5dd4a1 41 41 #include <config.h> 42 42 #ifdef MACHINE_msim 43 #include <arch/ drivers/msim.h>43 #include <arch/mach/msim/msim.h> 44 44 #endif 45 45 #include <arch/arch.h> … … 57 57 58 58 #define ZERO_PAGE_VALUE_KSEG1(frame) \ 59 (((volatile uint32_t *) (0xa0000000 + (frame << ZERO_PAGE_WIDTH)))[ZERO_PAGE_OFFSET])59 (((volatile uint32_t *) PA2KSEG1(frame << ZERO_PAGE_WIDTH))[ZERO_PAGE_OFFSET]) 60 60 61 61 #define MAX_REGIONS 32 … … 80 80 #ifdef MACHINE_msim 81 81 /* MSIM device (dprinter) */ 82 if (frame == (K A2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))82 if (frame == (KSEG12PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH)) 83 83 return false; 84 84 85 85 /* MSIM device (dkeyboard) */ 86 if (frame == (K A2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))86 if (frame == (KSEG12PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH)) 87 87 return false; 88 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.