Changeset 71eef11 in mainline for kernel/arch/amd64/src
- Timestamp:
- 2008-02-06T14:24:13Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7208b6c
- Parents:
- 1b067315
- Location:
- kernel/arch/amd64/src
- Files:
-
- 1 deleted
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r1b067315 r71eef11 51 51 52 52 #include <arch/bios/bios.h> 53 #include <arch/mm/memory_init.h>54 53 #include <arch/cpu.h> 55 54 #include <print.h> -
kernel/arch/amd64/src/boot/boot.S
r1b067315 r71eef11 183 183 184 184 xorl %ecx, %ecx # no memory size or map available 185 movl %ecx, e801memorysize186 185 movl %ecx, e820counter 187 186 … … 191 190 192 191 movl (%ebx), %eax # ebx = physical address of struct multiboot_info 193 194 bt $0, %eax # mbi->flags[0] (mem_lower, mem_upper valid)195 jc mem_valid196 197 xorl %ecx, %ecx198 jmp mem_invalid199 200 mem_valid:201 movl 4(%ebx), %ecx # mbi->mem_lower202 addl 8(%ebx), %ecx # mbi->mem_upper203 204 mem_invalid:205 movl %ecx, e801memorysize206 192 207 193 bt $3, %eax # mbi->flags[3] (mods_count, mods_addr valid) -
kernel/arch/amd64/src/boot/memmap.c
r1b067315 r71eef11 27 27 */ 28 28 29 /** @addtogroup ia32mm29 /** @addtogroup amd64mm 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @ingroup ia32mm, am64mm34 33 */ 35 34 36 #ifndef KERN_ia32_MEMORY_INIT_H_ 37 #define KERN_ia32_MEMORY_INIT_H_ 35 #include <arch/boot/memmap.h> 38 36 39 size_t get_memory_size(void); 40 41 #endif 37 uint8_t e820counter = 0xff; 38 e820memmap_t e820table[MEMMAP_E820_MAX_RECORDS]; 42 39 43 40 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.