From ded312f134a0c5125f692531280a5917d28e8026 Mon Sep 17 00:00:00 2001 From: gikidy Date: Mon, 16 Mar 2009 04:50:05 +0000 Subject: 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 --- DuetPkg/BootSector/start.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'DuetPkg/BootSector/start.S') diff --git a/DuetPkg/BootSector/start.S b/DuetPkg/BootSector/start.S index 58ac46d43f..bb31958611 100644 --- a/DuetPkg/BootSector/start.S +++ b/DuetPkg/BootSector/start.S @@ -218,7 +218,7 @@ FoundLastCluster: ReadBlocks: pusha - addl LBAOffsetForBootSector(%bp), %eax # Add LBAOffsetForBootSector to Start LBA + addl LBAOffsetForBootSector(%bp), %eax # Add LBAOffsetForBootSector to Start LBA addl HiddenSectors(%bp), %eax # Add HiddenSectors to Start LBA movl %eax, %esi # esi = Start LBA movw %bx, %cx # cx = Number of blocks to read @@ -315,7 +315,7 @@ LBAOffsetForBootSector: .equ WRITE_DATA_PORT_CMD, 0x0d1 # 8042 command to write the data port .equ ENABLE_A20_CMD, 0x0df # 8042 command to enable A20 - #.org 0x200 + .org 0x200 jmp start 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 @@ -353,11 +353,11 @@ MemMapDone: xorl %ebx, %ebx movw %cs, %bx # BX=segment shll $4, %ebx # BX="linear" address of segment base - leal GDT_BASE(%ebx), %eax # - movl %eax, (gdtr + 2) # - leal IDT_BASE(%ebx), %eax # - movl %eax, (idtr + 2) # - leal MemoryMapSize(%ebx), %edx # + leal GDT_BASE(%ebx), %eax # EAX=PHYSICAL address of gdt + movl %eax, (gdtr + 2) # Put address of gdt into the gdtr + leal IDT_BASE(%ebx), %eax # EAX=PHYSICAL address of idt + movl %eax, (idtr + 2) # Put address of idt into the idtr + leal MemoryMapSize(%ebx), %edx # Physical base address of the memory map addl $0x1000, %ebx # Source of EFI32 movl %ebx, JUMP+2 -- cgit v1.2.3