Changeset 42744880 in mainline for arch/ia32/src/mm/frame.c
- Timestamp:
- 2006-02-08T22:29:20Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 85dc2e7
- Parents:
- 89298e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/mm/frame.c
r89298e3 r42744880 42 42 #include <console/kconsole.h> 43 43 44 45 44 size_t hardcoded_unmapped_ktext_size = 0; 46 45 size_t hardcoded_unmapped_kdata_size = 0; … … 51 50 { 52 51 int i; 53 pfn_t start, size,conf; 52 pfn_t start, conf; 53 size_t size; 54 54 55 55 for (i = 0; i < e820counter; i++) { … … 57 57 start = ADDR2PFN(ALIGN_UP(e820table[i].base_address, 58 58 FRAME_SIZE)); 59 size = SIZE2 PFN(ALIGN_DOWN(e820table[i].size,59 size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size, 60 60 FRAME_SIZE)); 61 61 if (minconf < start || minconf >= start+size) … … 63 63 else 64 64 conf = minconf; 65 zone_create(start, size, conf, 0);65 zone_create(start, size, conf, 0); 66 66 if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE)) 67 67 last_frame = ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.