Changeset bcad855 in mainline
- Timestamp:
- 2012-12-06T23:03:08Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f69f63d
- Parents:
- 295732b
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/include/types.h
r295732b rbcad855 47 47 48 48 typedef struct { 49 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 50 uint32_t sdram_size; 51 #endif 49 52 uint32_t cpumap; 50 53 size_t cnt; -
boot/arch/mips32/src/asm.S
r295732b rbcad855 51 51 and $a0, $a1, $a0 52 52 mtc0 $a0, $status 53 54 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 55 /* 56 * Remember the size of the SDRAM in bootinfo. 57 */ 58 la $a0, PA2KA(BOOTINFO_OFFSET) 59 sw $a3, 0($a0) 60 #endif 53 61 54 62 /* -
kernel/arch/mips32/include/arch.h
r295732b rbcad855 44 44 extern size_t cpu_count; 45 45 46 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 47 extern size_t sdram_size; 48 #endif 49 46 50 typedef struct { 47 51 void *addr; … … 51 55 52 56 typedef struct { 57 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta) 58 uint32_t sdram_size; 59 #endif 53 60 uint32_t cpumap; 54 61 size_t cnt; -
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.