Made phys_fill fill its 4-byte pattern any number of bytes (instead of
rounded down to a 4-byte multiple) Fixed dependency omission
This commit is contained in:
parent
1d7bdd4ab1
commit
c24f72d433
|
@ -35,8 +35,10 @@ clean:
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
cd system && $(MAKE) -$(MAKEFLAGS) $@
|
cd system && $(MAKE) -$(MAKEFLAGS) $@
|
||||||
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c *.s > .depend
|
||||||
|
|
||||||
# Include generated dependencies.
|
# Include generated dependencies.
|
||||||
|
klib.o: klib386.s klib88.s
|
||||||
|
mpx.o: mpx386.s mpx88.s
|
||||||
include .depend
|
include .depend
|
||||||
|
|
||||||
|
|
|
@ -442,8 +442,9 @@ pc_small:
|
||||||
!*===========================================================================*
|
!*===========================================================================*
|
||||||
!* phys_fill *
|
!* phys_fill *
|
||||||
!*===========================================================================*
|
!*===========================================================================*
|
||||||
! PUBLIC void phys_fill(phys_bytes source, phys_bytes bytecount, char char);
|
! PUBLIC void phys_fill(phys_bytes source, phys_bytes bytecount,
|
||||||
! Zero a block of physical memory.
|
! unsigned long pattern);
|
||||||
|
! Fill a block of physical memory with pattern.
|
||||||
|
|
||||||
.align 16
|
.align 16
|
||||||
|
|
||||||
|
@ -464,6 +465,19 @@ fill_start:
|
||||||
add esi, 4
|
add esi, 4
|
||||||
dec eax
|
dec eax
|
||||||
jnz fill_start
|
jnz fill_start
|
||||||
|
! Any remaining bytes?
|
||||||
|
mov eax, 12(ebp)
|
||||||
|
and eax, 3
|
||||||
|
remain_fill:
|
||||||
|
cmp eax, 0
|
||||||
|
jz fill_done
|
||||||
|
movb bl, 16(ebp)
|
||||||
|
movb (esi), bl
|
||||||
|
add esi, 1
|
||||||
|
inc ebp
|
||||||
|
dec eax
|
||||||
|
jmp remain_fill
|
||||||
|
fill_done:
|
||||||
pop ds
|
pop ds
|
||||||
pop ebx
|
pop ebx
|
||||||
pop esi
|
pop esi
|
||||||
|
|
Loading…
Reference in a new issue