|
From: Kenn H. <ke...@us...> - 2004-09-26 22:44:32
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/boot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30718 Modified Files: head.S lib.c Log Message: Zero-filling of bss section now done with a more readable C helper Index: head.S =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/boot/head.S,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- head.S 26 Sep 2004 14:44:06 -0000 1.12 +++ head.S 26 Sep 2004 22:44:18 -0000 1.13 @@ -144,18 +144,12 @@ subl3 $start, $__bss_start, %r3 # offset of .bss to r3 addl2 $KERNEL_START_PHYS, %r3 # phys address of .bss start now in r3 -fill_chunk: - cmpl $0xffff, %r6 - bgeq last_fill - movc5 $0, (%r3), $0, $0xffff, (%r3) # After movc5, r3 points to next dest addr - subl2 $0xffff, %r6 - beql fill_done - brb fill_chunk -last_fill: - movc5 $0, (%r3), $0, %r6, (%r3) - # After movc5, r3 points to just after - # end of kernel -fill_done: + + pushl %r6 + pushl %r3 + calls $2, boot_memzero + addl2 %r6, %r3 + decl %r3 movl %r3, %r9 # save phys addr of last byte of kernel # in R9. We will need this later. Index: lib.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/boot/lib.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- lib.c 26 Sep 2004 14:44:06 -0000 1.1 +++ lib.c 26 Sep 2004 22:44:18 -0000 1.2 @@ -50,3 +50,12 @@ } } +void boot_memzero(unsigned char *addr, unsigned int size) +{ + while (size) { + *addr = 0; + addr++; + size--; + } +} + |