Changeset 5d3d7c2b in mainline for kernel/arch/xen32/src/boot/boot.S
- Timestamp:
- 2006-07-17T19:07:11Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c4a57f
- Parents:
- 380954d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/xen32/src/boot/boot.S
r380954d9 r5d3d7c2b 29 29 30 30 #include <arch/boot/boot.h> 31 #include <arch/boot/memmap.h>32 31 #include <arch/mm/page.h> 33 32 #include <arch/pm.h> … … 164 163 mods_end: 165 164 166 bt $6, %eax # mbi->flags[6] (mmap_length, mmap_addr valid)167 jc mmap_valid168 169 xorl %edx, %edx170 jmp mmap_invalid171 172 mmap_valid:173 movl 44(%ebx), %ecx # mbi->mmap_length174 movl 48(%ebx), %esi # mbi->mmap_addr175 movl $e820table, %edi176 xorl %edx, %edx177 178 mmap_loop:179 cmpl $0, %ecx180 jle mmap_end181 182 movl 4(%esi), %eax # mmap->base_addr_low183 movl %eax, (%edi)184 185 movl 8(%esi), %eax # mmap->base_addr_high186 movl %eax, 4(%edi)187 188 movl 12(%esi), %eax # mmap->length_low189 movl %eax, 8(%edi)190 191 movl 16(%esi), %eax # mmap->length_high192 movl %eax, 12(%edi)193 194 movl 20(%esi), %eax # mmap->type195 movl %eax, 16(%edi)196 197 movl (%esi), %eax # mmap->size198 addl $0x4, %eax199 addl %eax, %esi200 subl %eax, %ecx201 addl $MEMMAP_E820_RECORD_SIZE, %edi202 incl %edx203 jmp mmap_loop204 205 mmap_end:206 207 mmap_invalid:208 movl %edx, e820counter209 210 165 invalid_boot: 211 166
Note:
See TracChangeset
for help on using the changeset viewer.