Date: Thu, 23 Nov 2000 08:37:26 -0800 From: Julian Elischer <julian@elischer.org> To: current@freebsd.org Subject: slight improvement in locore.s? Message-ID: <3A1D47C6.D35464F0@elischer.org>
index | next in thread | raw e-mail
locore.s includes:
#define ALLOCPAGES(foo) \
movl R(physfree), %esi ; \
movl $((foo)*PAGE_SIZE), %eax ; \
addl %esi, %eax ; \
movl %eax, R(physfree) ; \
movl %esi, %edi ; \
movl $((foo)*PAGE_SIZE),%ecx ; \
xorl %eax,%eax ; \
cld ; \
rep ; \
stosb
might it be a very slight optimisation to change this to:
#define ALLOCPAGES(foo) \
movl R(physfree), %esi ; \
movl $((foo)*PAGE_SIZE), %eax ; \
movl %eax, %ecx ; \
addl %esi, %eax ; \
movl %eax, R(physfree) ; \
movl %esi, %edi ; \
xorl %eax,%eax ; \
cld ; \
rep ; \
stosb
??
--
__--_|\ Julian Elischer
/ \ julian@elischer.org
( OZ ) World tour 2000
---> X_.---._/ presently in: Budapest
v
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A1D47C6.D35464F0>
