Changeset 08cc26b in mainline
- Timestamp:
- 2012-01-23T12:21:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 304faab
- Parents:
- fcae007 (diff), 49ec568 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/frame.c
rfcae007 r08cc26b 46 46 #include <print.h> 47 47 48 #define PHYSMEM_LIMIT32 UINT64_C(0x100000000) 49 48 50 size_t hardcoded_unmapped_ktext_size = 0; 49 51 size_t hardcoded_unmapped_kdata_size = 0; … … 56 58 uint64_t base64 = e820table[i].base_address; 57 59 uint64_t size64 = e820table[i].size; 58 60 59 61 #ifdef KARCH_ia32 60 62 /* 61 63 * Restrict the e820 table entries to 32-bits. 62 64 */ 63 if (base64 >= 0x100000000ULL)65 if (base64 >= PHYSMEM_LIMIT32) 64 66 continue; 65 if (base64 + size64 > 0x100000000ULL) 66 size64 -= base64 + size64 - 0x100000000ULL; 67 68 if (base64 + size64 > PHYSMEM_LIMIT32) 69 size64 = PHYSMEM_LIMIT32 - base64; 67 70 #endif 68 71 69 72 uintptr_t base = (uintptr_t) base64; 70 73 size_t size = (size_t) size64;
Note:
See TracChangeset
for help on using the changeset viewer.