PERFORCE change 28101 for review
Peter Wemm
peter at FreeBSD.org
Fri Apr 4 17:12:10 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=28101
Change 28101 by peter at peter_daintree on 2003/04/04 17:11:20
s/movl/movq/ for 64 bit stuff
Affected files ...
.. //depot/projects/hammer/sys/x86_64/include/asm.h#4 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/include/asm.h#4 (text+ko) ====
@@ -107,38 +107,38 @@
#define ARCH_DISPATCH(x) \
_START_ENTRY; \
.globl CNAME(x); .type CNAME(x), at function; CNAME(x): ; \
- movl PIC_GOT(AVECNAME(x)),%rax; \
- jmpl *(%rax)
+ movq PIC_GOT(AVECNAME(x)),%rax; \
+ jmpq *(%rax)
#define ARCH_SELECT(x) _START_ENTRY; \
.type ASELNAME(x), at function; \
ASELNAME(x): \
call PIC_PLT(CNAME(__get_hw_float)); \
- testl %rax,%rax; \
- movl PIC_GOT(ANAME(x)),%rax; \
+ testq %rax,%rax; \
+ movq PIC_GOT(ANAME(x)),%rax; \
jne 8f; \
- movl PIC_GOT(GNAME(x)),%rax; \
+ movq PIC_GOT(GNAME(x)),%rax; \
8: \
- movl PIC_GOT(AVECNAME(x)),%rdx; \
- movl %rax,(%rdx); \
- jmpl *%rax
+ movq PIC_GOT(AVECNAME(x)),%rdx; \
+ movq %rax,(%rdx); \
+ jmpq *%rax
#else /* !PIC */
#define ARCH_DISPATCH(x) \
_START_ENTRY; \
.globl CNAME(x); .type CNAME(x), at function; CNAME(x): ; \
- jmpl *AVECNAME(x)
+ jmpw *AVECNAME(x)
#define ARCH_SELECT(x) _START_ENTRY; \
.type ASELNAME(x), at function; \
ASELNAME(x): \
call CNAME(__get_hw_float); \
- testl %rax,%rax; \
- movl $ANAME(x),%rax; \
+ testw %rax,%rax; \
+ movw $ANAME(x),%rax; \
jne 8f; \
- movl $GNAME(x),%rax; \
+ movw $GNAME(x),%rax; \
8: \
- movl %rax,AVECNAME(x); \
- jmpl *%rax
+ movw %rax,AVECNAME(x); \
+ jmpw *%rax
#endif /* PIC */
#define ARCH_VECTOR(x) .data; .p2align 2; \
More information about the p4-projects
mailing list