Changeset 7852625 in mainline
- Timestamp:
- 2012-01-05T17:49:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a549cc
- Parents:
- 9f0fb84
- Location:
- kernel
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/frame.c
r9f0fb84 r7852625 60 60 } else { 61 61 pfn_t conf = zone_external_conf_alloc(SIZE2FRAMES(size)); 62 63 zone_create(ADDR2PFN(base), SIZE2FRAMES(size), conf,64 ZONE_AVAILABLE | ZONE_HIGHMEM);62 if (conf != 0) 63 zone_create(ADDR2PFN(base), SIZE2FRAMES(size), conf, 64 ZONE_AVAILABLE | ZONE_HIGHMEM); 65 65 } 66 66 -
kernel/arch/ia32/src/mm/frame.c
r9f0fb84 r7852625 79 79 } else { 80 80 conf = zone_external_conf_alloc(count); 81 zone_create(pfn, count, conf, 82 ZONE_AVAILABLE | ZONE_HIGHMEM); 81 if (conf != 0) 82 zone_create(pfn, count, conf, 83 ZONE_AVAILABLE | ZONE_HIGHMEM); 83 84 } 84 85 } else if ((e820table[i].type == MEMMAP_MEMORY_ACPI) || -
kernel/arch/ia64/src/mm/frame.c
r9f0fb84 r7852625 79 79 ZONE_AVAILABLE | ZONE_LOWMEM); 80 80 } else { 81 pfn_t conf; 82 83 conf = zone_external_conf_alloc(count); 84 zone_create(pfn, count, conf, 85 ZONE_AVAILABLE | ZONE_HIGHMEM); 81 pfn_t conf = zone_external_conf_alloc(count); 82 if (conf != 0) 83 zone_create(pfn, count, conf, 84 ZONE_AVAILABLE | ZONE_HIGHMEM); 86 85 } 87 86 } -
kernel/arch/mips32/src/mm/frame.c
r9f0fb84 r7852625 156 156 } else { 157 157 conf_frame = zone_external_conf_alloc(count); 158 zone_create(first, count, conf_frame,159 ZONE_AVAILABLE | ZONE_HIGHMEM);160 }161 162 158 if (conf_frame != 0) 159 zone_create(first, count, conf_frame, 160 ZONE_AVAILABLE | ZONE_HIGHMEM); 161 } 162 163 163 if (phys_regions_count < MAX_REGIONS) { 164 164 phys_regions[phys_regions_count].start = first; -
kernel/arch/mips64/src/mm/frame.c
r9f0fb84 r7852625 148 148 } else { 149 149 conf_frame = zone_external_conf_alloc(count); 150 zone_create(first, count, conf_frame,151 ZONE_AVAILABLE | ZONE_HIGHMEM);152 }153 154 150 if (conf_frame != 0) 151 zone_create(first, count, conf_frame, 152 ZONE_AVAILABLE | ZONE_HIGHMEM); 153 } 154 155 155 if (phys_regions_count < MAX_REGIONS) { 156 156 phys_regions[phys_regions_count].start = first; -
kernel/arch/ppc32/src/mm/frame.c
r9f0fb84 r7852625 81 81 } else { 82 82 conf = zone_external_conf_alloc(count); 83 zone_create(pfn, count, conf, 84 ZONE_AVAILABLE | ZONE_HIGHMEM); 83 if (conf != 0) 84 zone_create(pfn, count, conf, 85 ZONE_AVAILABLE | ZONE_HIGHMEM); 85 86 } 86 87 } -
kernel/arch/sparc64/src/mm/sun4u/frame.c
r9f0fb84 r7852625 79 79 } else { 80 80 confdata = zone_external_conf_alloc(count); 81 zone_create(pfn, count, confdata, 82 ZONE_AVAILABLE | ZONE_HIGHMEM); 81 if (confdata != 0) 82 zone_create(pfn, count, confdata, 83 ZONE_AVAILABLE | ZONE_HIGHMEM); 83 84 } 84 85 } 85 86 86 } 87 87 -
kernel/arch/sparc64/src/mm/sun4v/frame.c
r9f0fb84 r7852625 79 79 } else { 80 80 confdata = zone_external_conf_alloc(count); 81 zone_create(pfn, count, confdata, 82 ZONE_AVAILABLE | ZONE_HIGHMEM); 81 if (confdata != 0) 82 zone_create(pfn, count, confdata, 83 ZONE_AVAILABLE | ZONE_HIGHMEM); 83 84 } 84 85 } 85 86 86 } 87 87 -
kernel/generic/src/mm/frame.c
r9f0fb84 r7852625 870 870 size_t order = ispwr2(size) ? fnzb(size) : (fnzb(size) + 1); 871 871 872 return ADDR2PFN((uintptr_t) frame_alloc(order - FRAME_WIDTH, FRAME_LOWMEM)); 872 return ADDR2PFN((uintptr_t) frame_alloc(order - FRAME_WIDTH, 873 FRAME_LOWMEM | FRAME_ATOMIC)); 873 874 } 874 875
Note:
See TracChangeset
for help on using the changeset viewer.