From: klu2 Date: Thu, 5 Mar 2009 14:13:25 +0000 (+0000) Subject: Refine comments. X-Git-Tag: edk2-stable201903~18434 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=4d382070b41deebb949c441b28e23a0c789e7620 Refine comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7816 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/DuetPkg/BootSector/bootsect.asm b/DuetPkg/BootSector/bootsect.asm index 972e36e8a1..8fb7236bc1 100644 --- a/DuetPkg/BootSector/bootsect.asm +++ b/DuetPkg/BootSector/bootsect.asm @@ -81,13 +81,13 @@ BootSectorEntryPoint: mov ah,8 ; ah = 8 - Get Drive Parameters Function mov byte ptr [bp+PhysicalDrive],dl ; BBS defines that BIOS would pass the booting driver number to the loader through DL int 13h ; Get Drive Parameters - xor ax,ax ; ax = 0 - mov al,dh ; al = dh - inc al ; MaxHead = al + 1 - push ax ; 0000:7bfe = MaxHead - mov al,cl ; al = cl - and al,03fh ; MaxSector = al & 0x3f - push ax ; 0000:7bfc = MaxSector + xor ax,ax ; ax = 0 + mov al,dh ; al = dh (number of sides (0 based)) + inc al ; MaxHead = al + 1 + push ax ; 0000:7bfe = MaxHead + mov al,cl ; al = cl (CL = sectors per track) + and al,03fh ; MaxSector = al & 0x3f + push ax ; 0000:7bfc = MaxSector cmp word ptr [bp+SectorSignature],0aa55h ; Verify Boot Sector Signature jne BadBootSector @@ -149,7 +149,7 @@ FindNext: jmp NotFoundAll FoundAll: -FoundEFILDR: +FoundEFILDR: ; 0x7cfe mov cx,bx ; cx = Start Cluster for EFILDR <---------------------------------- mov ax,cs ; Destination = 2000:0000 add ax,2000h @@ -170,8 +170,8 @@ ReadFirstClusterOfEFILDR: call ReadBlocks pop ax JumpIntoFirstSectorOfEFILDR: - mov word ptr [bp+JumpSegment],ax -JumpFarInstruction: + mov word ptr [bp+JumpSegment],ax ; 0x7d26 +JumpFarInstruction: ; 0x7d2a db 0eah JumpOffset: dw 0000h @@ -252,7 +252,7 @@ LimitTransfer: ; **************************************************************************** ; ERROR Condition: ; **************************************************************************** -NotFoundAll: +NotFoundAll: ; 0x7da6 ; if we found EFILDR, continue test bx,bx jne FoundEFILDR