Changeset bcad855 in mainline for kernel/arch/mips32/src
- Timestamp:
- 2012-12-06T23:03:08Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f69f63d
- Parents:
- 295732b
- Location:
- kernel/arch/mips32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mips32.c
r295732b rbcad855 71 71 size_t cpu_count = 0; 72 72 73 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 74 size_t sdram_size = 0; 75 #endif 76 73 77 /** Performs mips32-specific initialization before main_bsp() is called. */ 74 78 void arch_pre_main(void *entry __attribute__((unused)), bootinfo_t *bootinfo) … … 88 92 cpu_count++; 89 93 } 94 95 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 96 sdram_size = bootinfo->sdram_size; 97 #endif 90 98 } 91 99 -
kernel/arch/mips32/src/mm/frame.c
r295732b rbcad855 41 41 #include <config.h> 42 42 #include <arch/drivers/msim.h> 43 #include <arch/arch.h> 43 44 #include <print.h> 44 45 … … 82 83 /* MSIM device (dkeyboard) */ 83 84 if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH)) 85 return false; 86 #endif 87 88 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 89 if (frame >= (sdram_size >> ZERO_PAGE_WIDTH)) 84 90 return false; 85 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.