1. Add GNUmakefile for Linux GCC to build BootSector;

2. Modified some S files to pass ld phase.
Now the makefile only for pass build and source control. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7699 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy
2009-02-26 03:39:15 +00:00
parent 50db9e551a
commit fd549a4db9
9 changed files with 57 additions and 49 deletions

View File

@@ -74,7 +74,7 @@ BootSectorEntryPoint:
NoVarStore:
pushw %es
# Set the 5th byte start @ 0:19000 to non-zero indicating we should init var store header in DxeIpl
movb %al, %es:($4)
movb %al, %es:4
jmp SaveVolumeId
CheckVarStoreSize:
@@ -85,7 +85,7 @@ CheckVarStoreSize:
LoadVarStore:
movb $0, %al
movb %al, %es:($4)
movb %al, %es:4
movw (%di), %cx
# ES:DI = 1500:0
xorw %di, %di
@@ -96,9 +96,9 @@ LoadVarStore:
SaveVolumeId:
popw %es
movw VolId(%bp), %ax
movw %ax, %es:($0) # Save Volume Id to 0:19000. we will find the correct volume according to this VolumeId
movw %ax, %es:0 # Save Volume Id to 0:19000. we will find the correct volume according to this VolumeId
movw VolId+2(%bp), %ax
movw %ax, %es:($2)
movw %ax, %es:2
# Read Efildr
popw %cx