- Timestamp:
- 2005-09-21T13:37:50Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aed4eca
- Parents:
- fcacfb7
- Location:
- arch
- Files:
-
- 1 added
- 8 edited
-
amd64/src/mm/page.c (modified) (1 diff)
-
ia32/src/mm/frame.c (modified) (2 diffs)
-
ia32/src/mm/page.c (modified) (1 diff)
-
ia32/src/smp/mps.c (modified) (2 diffs)
-
ia64/Makefile.inc (modified) (1 diff)
-
ia64/src/dummy.s (modified) (2 diffs)
-
ia64/src/mm/frame.c (added)
-
mips32/src/mm/frame.c (modified) (1 diff)
-
ppc32/src/mm/frame.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/mm/page.c
rfcacfb7 r84dd253 53 53 * PA2KA(identity) mapping for all frames. 54 54 */ 55 for (i = 0; i < frames; i++) {55 for (i = 0; i < config.memory_size/FRAME_SIZE; i++) { 56 56 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); 57 57 } -
arch/ia32/src/mm/frame.c
rfcacfb7 r84dd253 33 33 #include <arch/boot/boot.h> 34 34 #include <arch/boot/memmap.h> 35 #include <panic.h> 35 36 36 37 size_t hardcoded_unmapped_ktext_size = 0; … … 39 40 void frame_arch_init(void) 40 41 { 42 zone_t *z; 41 43 __u8 i; 42 44 43 45 if (config.cpu_active == 1) { 44 /* Reserve the NULL frame */ 45 frame_not_free(0x0); 46 for (i=e820counter;i>0;i--) { 47 if (e820table[i-1].type==MEMMAP_MEMORY_AVAILABLE) { 48 z = zone_create(e820table[i-1].base_address, e820table[i-1].size & ~(FRAME_SIZE-1), 0); 49 if (!z) { 50 panic("Cannot allocate zone (%dB).\n", e820table[i-1].size & ~(FRAME_SIZE-1)); 51 } 52 zone_attach(z); 53 } 54 } 46 55 47 /* Reserve well-known memory regions */ 48 frame_region_not_free(0xa0000,0xff000); 49 frame_region_not_free(0xfec00000,0xffffffff); 50 56 frame_not_free(0); 57 51 58 /* Reserve real mode bootstrap memory */ 52 frame_region_not_free(BOOTSTRAP_OFFSET, BOOTSTRAP_OFFSET + hardcoded_unmapped_ktext_size + hardcoded_unmapped_kdata_size); 53 54 for (i=e820counter;i>0;i--) { 55 if (e820table[i-1].type!=MEMMAP_MEMORY_AVAILABLE) { 56 frame_region_not_free(e820table[i-1].base_address, e820table[i-1].base_address+e820table[i-1].size); 57 } 58 } 59 frame_region_not_free(BOOTSTRAP_OFFSET, BOOTSTRAP_OFFSET + hardcoded_unmapped_ktext_size + hardcoded_unmapped_kdata_size); 59 60 } 60 61 } -
arch/ia32/src/mm/page.c
rfcacfb7 r84dd253 56 56 * PA2KA(identity) mapping for all frames. 57 57 */ 58 for (i = 0; i < frames; i++)58 for (i = 0; i < config.memory_size/PAGE_SIZE; i++) 59 59 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 60 60 -
arch/ia32/src/smp/mps.c
rfcacfb7 r84dd253 188 188 printf("%P: MPS Floating Pointer Structure\n", fs); 189 189 190 frame_not_free((__address) fs);191 192 190 if (fs->config_type == 0 && fs->configuration_table) { 193 191 if (fs->mpfib2 >> 7) { … … 197 195 198 196 ct = (struct mps_ct *)PA2KA((__address)fs->configuration_table); 199 frame_not_free((__address) ct);200 197 config.cpu_count = configure_via_ct(); 201 198 } -
arch/ia64/Makefile.inc
rfcacfb7 r84dd253 33 33 arch/ivt.S \ 34 34 arch/interrupt_handler.c \ 35 arch/fmath.c 35 arch/fmath.c \ 36 arch/mm/frame.c -
arch/ia64/src/dummy.s
rfcacfb7 r84dd253 41 41 .global cpu_priority_restore 42 42 .global cpu_sleep 43 .global frame_arch_init44 43 .global dummy 45 44 .global fpu_enable … … 59 58 cpu_priority_restore: 60 59 cpu_sleep: 61 frame_arch_init:62 60 fpu_init: 63 61 fpu_enable: -
arch/mips32/src/mm/frame.c
rfcacfb7 r84dd253 31 31 #include <arch/asm/boot.h> 32 32 #include <arch/mm/page.h> 33 #include <config.h> 34 #include <panic.h> 33 35 34 36 void frame_arch_init(void) 35 37 { 38 zone_t *z; 39 40 z = zone_create(0, config.memory_size, 0); 41 if (!z) { 42 panic("Can't allocate zone (%dB).\n", config.memory_size); 43 } 44 zone_attach(z); 45 36 46 /* Disable Everything until load address */ 37 47 frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS)); -
arch/ppc32/src/mm/frame.c
rfcacfb7 r84dd253 29 29 #include <arch/mm/frame.h> 30 30 #include <mm/frame.h> 31 #include <config.h> 32 #include <panic.h> 31 33 32 34 void frame_arch_init(void) 33 35 { 36 zone_t *z; 37 38 z = zone_create(0, config.memory_size & ~(FRAME_SIZE-1), 0); 39 if (!z) { 40 panic("Can't allocate zone (%dB).\n", config.memory_size & ~(FRAME_SIZE-1)); 41 } 42 zone_attach(z); 34 43 }
Note:
See TracChangeset
for help on using the changeset viewer.
