1. Add start64.S file for X64.

2. start.S file reviewed.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7884 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-03-16 04:50:05 +00:00
parent 560b815e21
commit ded312f134
2 changed files with 1153 additions and 7 deletions

View File

@ -315,7 +315,7 @@ LBAOffsetForBootSector:
.equ WRITE_DATA_PORT_CMD, 0x0d1 # 8042 command to write the data port .equ WRITE_DATA_PORT_CMD, 0x0d1 # 8042 command to write the data port
.equ ENABLE_A20_CMD, 0x0df # 8042 command to enable A20 .equ ENABLE_A20_CMD, 0x0df # 8042 command to enable A20
#.org 0x200 .org 0x200
jmp start jmp start
Em64String: Em64String:
.byte 'E', 0x0c, 'm', 0x0c, '6', 0x0c, '4', 0x0c, 'T', 0x0c, ' ', 0x0c, 'U', 0x0c, 'n', 0x0c, 's', 0x0c, 'u', 0x0c, 'p', 0x0c, 'p', 0x0c, 'o', 0x0c, 'r', 0x0c, 't', 0x0c, 'e', 0x0c, 'd', 0x0c, '!', 0x0c .byte 'E', 0x0c, 'm', 0x0c, '6', 0x0c, '4', 0x0c, 'T', 0x0c, ' ', 0x0c, 'U', 0x0c, 'n', 0x0c, 's', 0x0c, 'u', 0x0c, 'p', 0x0c, 'p', 0x0c, 'o', 0x0c, 'r', 0x0c, 't', 0x0c, 'e', 0x0c, 'd', 0x0c, '!', 0x0c
@ -353,11 +353,11 @@ MemMapDone:
xorl %ebx, %ebx xorl %ebx, %ebx
movw %cs, %bx # BX=segment movw %cs, %bx # BX=segment
shll $4, %ebx # BX="linear" address of segment base shll $4, %ebx # BX="linear" address of segment base
leal GDT_BASE(%ebx), %eax # leal GDT_BASE(%ebx), %eax # EAX=PHYSICAL address of gdt
movl %eax, (gdtr + 2) # movl %eax, (gdtr + 2) # Put address of gdt into the gdtr
leal IDT_BASE(%ebx), %eax # leal IDT_BASE(%ebx), %eax # EAX=PHYSICAL address of idt
movl %eax, (idtr + 2) # movl %eax, (idtr + 2) # Put address of idt into the idtr
leal MemoryMapSize(%ebx), %edx # leal MemoryMapSize(%ebx), %edx # Physical base address of the memory map
addl $0x1000, %ebx # Source of EFI32 addl $0x1000, %ebx # Source of EFI32
movl %ebx, JUMP+2 movl %ebx, JUMP+2

1146
DuetPkg/BootSector/start64.S Normal file

File diff suppressed because it is too large Load Diff