Changeset 4037847 in mainline for arch/ppc32/src/mm/frame.c
- Timestamp:
- 2006-03-24T19:14:12Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c715e9b
- Parents:
- 5201199
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified arch/ppc32/src/mm/frame.c ¶
r5201199 r4037847 27 27 */ 28 28 29 #include <arch/boot/boot.h> 29 30 #include <arch/mm/frame.h> 30 #include <arch/boot/memmap.h>31 31 #include <arch/mm/memory_init.h> 32 32 #include <mm/frame.h> … … 43 43 size_t size; 44 44 45 for (i = 0; i < memmap.count; i++) {46 start = ADDR2PFN(ALIGN_UP( memmap.zones[i].start, FRAME_SIZE));47 size = SIZE2FRAMES(ALIGN_DOWN( memmap.zones[i].size, FRAME_SIZE));45 for (i = 0; i < bootinfo.memmap.count; i++) { 46 start = ADDR2PFN(ALIGN_UP(bootinfo.memmap.zones[i].start, FRAME_SIZE)); 47 size = SIZE2FRAMES(ALIGN_DOWN(bootinfo.memmap.zones[i].size, FRAME_SIZE)); 48 48 49 49 if ((minconf < start) || (minconf >= start + size)) … … 53 53 54 54 zone_create(start, size, conf, 0); 55 if (last_frame < ALIGN_UP( memmap.zones[i].start +memmap.zones[i].size, FRAME_SIZE))56 last_frame = ALIGN_UP( memmap.zones[i].start +memmap.zones[i].size, FRAME_SIZE);55 if (last_frame < ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE)) 56 last_frame = ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE); 57 57 } 58 58
Note:
See TracChangeset
for help on using the changeset viewer.