Changeset 9ebc238 in mainline
- Timestamp:
- 2005-12-04T21:02:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4457455
- Parents:
- cf585c9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mm/frame.c
rcf585c9 r9ebc238 37 37 void frame_arch_init(void) 38 38 { 39 /* Disable Everything until load address */ 40 frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS) + FRAME_SIZE); 41 zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE-1)); 39 zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), config.memory_size & ~(FRAME_SIZE-1)); 42 40 } -
generic/src/mm/frame.c
rcf585c9 r9ebc238 39 39 #include <arch.h> 40 40 #include <print.h> 41 #include <align.h> 41 42 42 43 spinlock_t zone_head_lock; /**< this lock protects zone_head list */ … … 63 64 if (config.cpu_active == 1) { 64 65 zone_init(); 65 frame_region_not_free(config.base, config. base + config.kernel_size + CONFIG_STACK_SIZE);66 frame_region_not_free(config.base, config.kernel_size); 66 67 } 67 68 … … 212 213 213 214 if (size % FRAME_SIZE != 0) { 214 size = size + (FRAME_SIZE - size %FRAME_SIZE);215 size = ALIGN(size, FRAME_SIZE); 215 216 } 216 217 ASSERT(size % FRAME_SIZE == 0);
Note:
See TracChangeset
for help on using the changeset viewer.