Changeset 0b5f9fa in mainline
- Timestamp:
- 2008-02-05T16:01:57Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b067315
- Parents:
- b5ed4f8
- Location:
- kernel/arch
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
rb5ed4f8 r0b5f9fa 166 166 { 167 167 if (config.cpu_active == 1) { 168 memory_print_map(); 169 170 #ifdef CONFIG_SMP 168 #ifdef CONFIG_SMP 171 169 acpi_init(); 172 170 #endif /* CONFIG_SMP */ 173 171 } 174 172 } -
kernel/arch/amd64/src/mm/memory_init.c
rb5ed4f8 r0b5f9fa 47 47 } 48 48 49 void memory_print_map(void)50 {51 uint8_t i;52 53 for (i = 0; i < e820counter; i++) {54 printf("E820 base: %#llx size: %#llx type: ", e820table[i].base_address, e820table[i].size);55 switch (e820table[i].type) {56 case MEMMAP_MEMORY_AVAILABLE:57 printf("available memory\n");58 break;59 case MEMMAP_MEMORY_RESERVED:60 printf("reserved memory\n");61 break;62 case MEMMAP_MEMORY_ACPI:63 printf("ACPI table\n");64 break;65 case MEMMAP_MEMORY_NVS:66 printf("NVS\n");67 break;68 case MEMMAP_MEMORY_UNUSABLE:69 printf("unusable memory\n");70 break;71 default:72 printf("undefined memory type\n");73 }74 }75 76 }77 78 49 /** @} 79 50 */ -
kernel/arch/ia32/include/mm/memory_init.h
rb5ed4f8 r0b5f9fa 39 39 size_t get_memory_size(void); 40 40 41 void memory_print_map(void);42 43 41 #endif 44 42 -
kernel/arch/ia32/src/ia32.c
rb5ed4f8 r0b5f9fa 117 117 { 118 118 if (config.cpu_active == 1) { 119 memory_print_map();120 121 119 #ifdef CONFIG_SMP 122 120 acpi_init(); -
kernel/arch/ia32/src/mm/frame.c
rb5ed4f8 r0b5f9fa 104 104 printf("%#18llx %#18llx %s\n", e820table[i].base_address, 105 105 e820table[i].size, name); 106 } 106 } 107 107 } 108 108 -
kernel/arch/ia32/src/mm/memory_init.c
rb5ed4f8 r0b5f9fa 47 47 } 48 48 49 void memory_print_map(void)50 {51 uint8_t i;52 53 for (i = 0; i < e820counter; i++) {54 printf("E820 base: %#.16llx size: %#.16llx type: ", e820table[i].base_address, e820table[i].size);55 switch (e820table[i].type) {56 case MEMMAP_MEMORY_AVAILABLE:57 printf("available memory\n");58 break;59 case MEMMAP_MEMORY_RESERVED:60 printf("reserved memory\n");61 break;62 case MEMMAP_MEMORY_ACPI:63 printf("ACPI table\n");64 break;65 case MEMMAP_MEMORY_NVS:66 printf("NVS\n");67 break;68 case MEMMAP_MEMORY_UNUSABLE:69 printf("unusable memory\n");70 break;71 default:72 printf("undefined memory type\n");73 }74 }75 76 }77 78 49 /** @} 79 50 */ -
kernel/arch/ia32xen/include/mm/frame.h
rb5ed4f8 r0b5f9fa 47 47 48 48 extern void frame_arch_init(void); 49 #define physmem_print() 49 extern void physmem_print(void); 50 50 51 51 #endif /* __ASM__ */ -
kernel/arch/ia32xen/include/mm/memory_init.h
rb5ed4f8 r0b5f9fa 41 41 size_t get_memory_size(void); 42 42 43 void memory_print_map(void);44 45 43 #endif 46 44 -
kernel/arch/ia32xen/src/ia32xen.c
rb5ed4f8 r0b5f9fa 161 161 { 162 162 if (config.cpu_active == 1) { 163 memory_print_map();164 165 163 #ifdef CONFIG_SMP 166 164 acpi_init(); -
kernel/arch/ia32xen/src/mm/frame.c
rb5ed4f8 r0b5f9fa 37 37 #include <config.h> 38 38 39 void physmem_print(void) 40 { 41 printf("Base Size Reserved\n"); 42 printf("---------- ---------- ---------\n"); 43 printf("%#10x %#10x %#10x\n", PFN2ADDR(meminfo.start), 44 PFN2ADDR(meminfo.size), PFN2ADDR(meminfo.reserved)); 45 } 46 39 47 void frame_arch_init(void) 40 48 { -
kernel/arch/ia32xen/src/mm/memory_init.c
rb5ed4f8 r0b5f9fa 43 43 } 44 44 45 void memory_print_map(void)46 {47 printf("Xen memory: %p size: %d (reserved %d)\n", PFN2ADDR(meminfo.start), PFN2ADDR(meminfo.size - meminfo.reserved), PFN2ADDR(meminfo.reserved));48 }49 50 45 /** @} 51 46 */ -
kernel/arch/ppc32/include/mm/frame.h
rb5ed4f8 r0b5f9fa 47 47 48 48 extern void frame_arch_init(void); 49 #define physmem_print() 49 extern void physmem_print(void); 50 50 51 51 #endif /* __ASM__ */ -
kernel/arch/ppc32/include/mm/memory_init.h
rb5ed4f8 r0b5f9fa 38 38 size_t get_memory_size(void); 39 39 40 void memory_print_map(void);41 42 40 #endif 43 41 -
kernel/arch/ppc32/src/mm/frame.c
rb5ed4f8 r0b5f9fa 39 39 #include <align.h> 40 40 #include <macros.h> 41 #include <print.h> 41 42 42 43 uintptr_t last_frame = 0; 44 45 void physmem_print(void) 46 { 47 unsigned int i; 48 49 printf("Base Size\n"); 50 printf("---------- ----------\n"); 51 52 for (i = 0; i < bootinfo.memmap.count; i++) { 53 printf("%#10x %#10x\n", bootinfo.memmap.zones[i].start, 54 bootinfo.memmap.zones[i].size); 55 } 56 } 43 57 44 58 void frame_arch_init(void) -
kernel/arch/ppc32/src/mm/memory_init.c
rb5ed4f8 r0b5f9fa 43 43 } 44 44 45 46 void memory_print_map(void)47 {48 count_t i;49 50 for (i = 0; i < bootinfo.memmap.count; i++)51 printf("base: %.*p size: %#x\n", sizeof(bootinfo.memmap.zones[i].start) * 2, bootinfo.memmap.zones[i].start, bootinfo.memmap.zones[i].size);52 }53 54 45 /** @} 55 46 */ -
kernel/arch/ppc32/src/ppc32.c
rb5ed4f8 r0b5f9fa 118 118 void arch_pre_smp_init(void) 119 119 { 120 memory_print_map();121 120 } 122 121 -
kernel/arch/ppc64/include/mm/frame.h
rb5ed4f8 r0b5f9fa 47 47 48 48 extern void frame_arch_init(void); 49 #define physmem_print() 49 extern void physmem_print(void); 50 50 51 51 #endif /* __ASM__ */ -
kernel/arch/ppc64/include/mm/memory_init.h
rb5ed4f8 r0b5f9fa 38 38 size_t get_memory_size(void); 39 39 40 void memory_print_map(void);41 42 40 #endif 43 41 -
kernel/arch/ppc64/src/mm/frame.c
rb5ed4f8 r0b5f9fa 39 39 #include <align.h> 40 40 #include <macros.h> 41 #include <print.h> 41 42 42 43 uintptr_t last_frame = 0; 44 45 void physmem_print(void) 46 { 47 unsigned int i; 48 49 printf("Base Size\n"); 50 printf("---------- ----------\n"); 51 52 for (i = 0; i < bootinfo.memmap.count; i++) { 53 printf("%#10x %#10x\n", bootinfo.memmap.zones[i].start, 54 bootinfo.memmap.zones[i].size); 55 } 56 } 43 57 44 58 void frame_arch_init(void) -
kernel/arch/ppc64/src/mm/memory_init.c
rb5ed4f8 r0b5f9fa 44 44 45 45 46 void memory_print_map(void)47 {48 count_t i;49 50 for (i = 0; i < bootinfo.memmap.count; i++)51 printf("base: %#x size: %#x\n", bootinfo.memmap.zones[i].start, bootinfo.memmap.zones[i].size);52 }53 54 46 /** @} 55 47 */ -
kernel/arch/ppc64/src/ppc64.c
rb5ed4f8 r0b5f9fa 103 103 void arch_pre_smp_init(void) 104 104 { 105 memory_print_map();106 105 } 107 106
Note:
See TracChangeset
for help on using the changeset viewer.