Fix spacing
This commit is contained in:
parent
0658e928cf
commit
3daba08cfa
1 changed files with 16 additions and 16 deletions
|
@ -28,7 +28,7 @@
|
||||||
/* The replacement int13 handler. Preserve all registers. */
|
/* The replacement int13 handler. Preserve all registers. */
|
||||||
FUNCTION(grub_drivemap_handler)
|
FUNCTION(grub_drivemap_handler)
|
||||||
/* Save %dx for future restore. */
|
/* Save %dx for future restore. */
|
||||||
push %dx
|
push %dx
|
||||||
/* Push flags. Used to simulate interrupt with original flags. */
|
/* Push flags. Used to simulate interrupt with original flags. */
|
||||||
pushf
|
pushf
|
||||||
|
|
||||||
|
@ -56,9 +56,9 @@ not_found:
|
||||||
pop %bx
|
pop %bx
|
||||||
pop %ax
|
pop %ax
|
||||||
|
|
||||||
cmpb $0x8, %ah
|
cmpb $0x8, %ah
|
||||||
jz norestore
|
jz norestore
|
||||||
cmpb $0x15, %ah
|
cmpb $0x15, %ah
|
||||||
jz norestore
|
jz norestore
|
||||||
|
|
||||||
/* Restore flags. */
|
/* Restore flags. */
|
||||||
|
@ -66,20 +66,20 @@ not_found:
|
||||||
pushf
|
pushf
|
||||||
|
|
||||||
lcall *%cs:INT13H_OFFSET (EXT_C (grub_drivemap_oldhandler))
|
lcall *%cs:INT13H_OFFSET (EXT_C (grub_drivemap_oldhandler))
|
||||||
|
|
||||||
push %bp
|
push %bp
|
||||||
mov %sp, %bp
|
mov %sp, %bp
|
||||||
|
|
||||||
tail:
|
tail:
|
||||||
|
|
||||||
pushf
|
pushf
|
||||||
pop %dx
|
pop %dx
|
||||||
mov %dx, 8(%bp)
|
mov %dx, 8(%bp)
|
||||||
|
|
||||||
pop %bp
|
pop %bp
|
||||||
|
|
||||||
/* Restore %dx. */
|
/* Restore %dx. */
|
||||||
pop %dx
|
pop %dx
|
||||||
iret
|
iret
|
||||||
|
|
||||||
norestore:
|
norestore:
|
||||||
|
@ -90,14 +90,14 @@ norestore:
|
||||||
|
|
||||||
lcall *%cs:INT13H_OFFSET (EXT_C (grub_drivemap_oldhandler))
|
lcall *%cs:INT13H_OFFSET (EXT_C (grub_drivemap_oldhandler))
|
||||||
|
|
||||||
push %bp
|
push %bp
|
||||||
mov %sp, %bp
|
mov %sp, %bp
|
||||||
|
|
||||||
/* Save %dx. */
|
/* Save %dx. */
|
||||||
mov %dx, 2(%bp)
|
mov %dx, 2(%bp)
|
||||||
|
|
||||||
jmp tail
|
jmp tail
|
||||||
|
|
||||||
/* Far pointer to the old handler. Stored as a CS:IP in the style of real-mode
|
/* Far pointer to the old handler. Stored as a CS:IP in the style of real-mode
|
||||||
IVT entries (thus PI:SC in mem). */
|
IVT entries (thus PI:SC in mem). */
|
||||||
VARIABLE(grub_drivemap_oldhandler)
|
VARIABLE(grub_drivemap_oldhandler)
|
||||||
|
|
Loading…
Add table
Reference in a new issue