shrink the code size of stage1.
This commit is contained in:
parent
2b8c514095
commit
d08bfbd094
3 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2000-04-30 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
|
* stage1/stage1.S (message): Use lodsb instead of incw and movb.
|
||||||
|
From Andrew Clausen <clausen@gnu.org>.
|
||||||
|
|
||||||
|
* stage1/stage1.S (copy_buffer): Set %cx to 0x100 and use movsw
|
||||||
|
instead of movsb, since it is guaranteed that the region is
|
||||||
|
properly aligned.
|
||||||
|
|
||||||
2000-04-29 OKUJI Yoshinori <okuji@gnu.org>
|
2000-04-29 OKUJI Yoshinori <okuji@gnu.org>
|
||||||
|
|
||||||
* stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
|
* stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -7,6 +7,7 @@ time and energy in helping to track down bugs, add new features, and
|
||||||
generally assist in the GRUB maintainership process:
|
generally assist in the GRUB maintainership process:
|
||||||
|
|
||||||
Alexander K. Hudek <alexhudek@home.com>
|
Alexander K. Hudek <alexhudek@home.com>
|
||||||
|
Andrew Clausen <clausen@gnu.org>
|
||||||
Bradford Hovinen <hovinen@redrose.net>
|
Bradford Hovinen <hovinen@redrose.net>
|
||||||
Brian Brunswick <brian@skarpsey.demon.co.uk>
|
Brian Brunswick <brian@skarpsey.demon.co.uk>
|
||||||
Bryan Ford <baford@cs.utah.edu>
|
Bryan Ford <baford@cs.utah.edu>
|
||||||
|
|
|
@ -348,7 +348,7 @@ copy_buffer:
|
||||||
pushw %ds
|
pushw %ds
|
||||||
pushw %si
|
pushw %si
|
||||||
|
|
||||||
movw $0x200, %cx
|
movw $0x100, %cx
|
||||||
movw %bx, %ds
|
movw %bx, %ds
|
||||||
xorw %si, %si
|
xorw %si, %si
|
||||||
xorw %di, %di
|
xorw %di, %di
|
||||||
|
@ -356,7 +356,7 @@ copy_buffer:
|
||||||
cld
|
cld
|
||||||
|
|
||||||
rep
|
rep
|
||||||
movsb
|
movsw
|
||||||
|
|
||||||
popw %si
|
popw %si
|
||||||
popw %ds
|
popw %ds
|
||||||
|
@ -414,10 +414,8 @@ general_error_string: .string " Error"
|
||||||
movw $0x0001, %bx
|
movw $0x0001, %bx
|
||||||
movb $0xe, %ah
|
movb $0xe, %ah
|
||||||
int $0x10 /* display a byte */
|
int $0x10 /* display a byte */
|
||||||
|
|
||||||
incw %si
|
|
||||||
message:
|
message:
|
||||||
movb (%si), %al
|
lodsb
|
||||||
cmpb $0, %al
|
cmpb $0, %al
|
||||||
jne 1b /* if not end of string, jmp to display */
|
jne 1b /* if not end of string, jmp to display */
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue