Make the newer gas happy by explicitly adding '*' to indirect calls, and

matching mov extensions with register names.
This commit is contained in:
fvdl 2001-09-21 14:12:50 +00:00
parent 000902fbf6
commit 165dd7f987
5 changed files with 40 additions and 40 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bioscall.s,v 1.5 2001/05/21 06:13:12 perry Exp $ */
/* $NetBSD: bioscall.s,v 1.6 2001/09/21 14:12:50 fvdl Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -69,21 +69,21 @@ _C_LABEL(biostramp_image_size):
NENTRY(bioscall)
pushl %ebp
movl %esp,%ebp /* set up frame ptr */
movl %cr3,%eax /* save PTDB register */
pushl %eax
movl _C_LABEL(PTDpaddr),%eax /* install proc0 PTD */
movl %eax,%cr3
movl $(BIOSTRAMP_BASE),%eax /* address of trampoline area */
pushl 12(%ebp)
pushl 8(%ebp)
call %eax /* machdep.c initializes it */
addl $8,%esp /* clear args from stack */
popl %eax
movl %eax,%cr3 /* restore PTDB register */
movl $(BIOSTRAMP_BASE),%eax /* address of trampoline area */
pushl 12(%ebp)
pushl 8(%ebp)
call *%eax /* machdep.c initializes it */
addl $8,%esp /* clear args from stack */
popl %eax
movl %eax,%cr3 /* restore PTDB register */
leave
ret

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.248 2001/09/18 06:29:08 chs Exp $ */
/* $NetBSD: locore.s,v 1.249 2001/09/21 14:12:50 fvdl Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -161,12 +161,12 @@
pushl %edi ; \
pushl %ds ; \
pushl %es ; \
movl %ax,%ds ; \
movl %ax,%es ; \
movw %ax,%ds ; \
movw %ax,%es ; \
pushl %fs ; \
pushl %gs ; \
movl %ax,%fs ; \
movl %ax,%gs ; \
movw %ax,%fs ; \
movw %ax,%gs ; \
#define INTRFASTEXIT \
popl %gs ; \
@ -329,8 +329,8 @@ start: movw $0x1234,0x472 # warm boot
/* Clear segment registers; always null in proc0. */
xorl %eax,%eax
movl %ax,%fs
movl %ax,%gs
movw %ax,%fs
movw %ax,%gs
/* Find out our CPU type. */
try386: /* Try to toggle alignment check flag; does not exist on 386. */
@ -712,7 +712,7 @@ begin:
/* LINTSTUB: Func: void proc_trampoline(void) */
NENTRY(proc_trampoline)
pushl %ebx
call %esi
call *%esi
addl $4,%esp
INTRFASTEXIT
/* NOTREACHED */
@ -729,7 +729,7 @@ NENTRY(proc_trampoline)
*/
/* LINTSTUB: Var: char sigcode[1], esigcode[1]; */
NENTRY(sigcode)
call SIGF_HANDLER(%esp)
call *SIGF_HANDLER(%esp)
leal SIGF_SC(%esp),%eax # scp (the call may have clobbered the
# copy at SIGF_SCP(%esp))
pushl %eax
@ -1613,9 +1613,9 @@ NENTRY(lgdt)
nop
1: /* Reload "stale" selectors. */
movl $GSEL(GDATA_SEL, SEL_KPL),%eax
movl %ax,%ds
movl %ax,%es
movl %ax,%ss
movw %ax,%ds
movw %ax,%es
movw %ax,%ss
/* Reload code selector by doing intersegment return. */
popl %eax
pushl $GSEL(GCODE_SEL, SEL_KPL)
@ -2046,8 +2046,8 @@ ENTRY(switch_exit)
/* Clear segment registers; always null in proc0. */
xorl %ecx,%ecx
movl %cx,%fs
movl %cx,%gs
movw %cx,%fs
movw %cx,%gs
/* Restore cr0 (including FPU state). */
movl PCB_CR0(%esi),%ecx
@ -2251,17 +2251,17 @@ NENTRY(resume_iret)
NENTRY(resume_pop_ds)
pushl %es
movl $GSEL(GDATA_SEL, SEL_KPL),%eax
movl %ax,%es
movw %ax,%es
/* LINTSTUB: Var: char resume_pop_es[1]; */
NENTRY(resume_pop_es)
pushl %fs
movl $GSEL(GDATA_SEL, SEL_KPL),%eax
movl %ax,%fs
movw %ax,%fs
/* LINTSTUB: Var: char resume_pop_fs[1]; */
NENTRY(resume_pop_fs)
pushl %gs
movl $GSEL(GDATA_SEL, SEL_KPL),%eax
movl %ax,%gs
movw %ax,%gs
/* LINTSTUB: Var: char resume_pop_gs[1]; */
NENTRY(resume_pop_gs)
movl $T_PROTFLT,TF_TRAPNO(%esp)
@ -2420,7 +2420,7 @@ syscall1:
movl _C_LABEL(cpl),%ebx
#endif /* DIAGNOSTIC */
movl %esp,P_MD_REGS(%edx) # save pointer to frame
call P_MD_SYSCALL(%edx) # get pointer to syscall() function
call *P_MD_SYSCALL(%edx) # get pointer to syscall() function
2: /* Check for ASTs on exit to user mode. */
cli
cmpb $0,_C_LABEL(astpending)

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_sigcode.s,v 1.4 2001/06/17 21:01:36 sommerfeld Exp $ */
/* $NetBSD: svr4_sigcode.s,v 1.5 2001/09/21 14:12:51 fvdl Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -125,8 +125,8 @@
pushl %ds ; \
pushl %es ; \
movl $GSEL(GDATA_SEL, SEL_KPL),%eax ; \
movl %ax,%ds ; \
movl %ax,%es
movw %ax,%ds ; \
movw %ax,%es
#define INTRFASTEXIT \
popl %es ; \
popl %ds ; \
@ -145,7 +145,7 @@
*/
/* LINTSTUB: Var: char svr4_sigcode[1], svr4_esigcode[1]; */
NENTRY(svr4_sigcode)
call SVR4_SIGF_HANDLER(%esp)
call *SVR4_SIGF_HANDLER(%esp)
leal SVR4_SIGF_UC(%esp),%eax # ucp (the call may have clobbered the
# copy at SIGF_UCP(%esp))
pushl %eax

View File

@ -1,4 +1,4 @@
/* $NetBSD: icu.s,v 1.64 2001/04/14 06:49:32 thorpej Exp $ */
/* $NetBSD: icu.s,v 1.65 2001/09/21 14:12:52 fvdl Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -144,7 +144,7 @@ IDTVEC(softserial)
addl $4,%esp
movl %ebx,_C_LABEL(cpl)
jmp %esi
jmp *%esi
IDTVEC(softnet)
movl _C_LABEL(imask) + IPL_SOFTNET * 4,%eax
@ -169,7 +169,7 @@ IDTVEC(softnet)
addl $4,%esp
movl %ebx,_C_LABEL(cpl)
jmp %esi
jmp *%esi
IDTVEC(softclock)
movl _C_LABEL(imask) + IPL_SOFTCLOCK * 4,%eax
@ -180,4 +180,4 @@ IDTVEC(softclock)
addl $4,%esp
movl %ebx,_C_LABEL(cpl)
jmp %esi
jmp *%esi

View File

@ -1,4 +1,4 @@
/* $NetBSD: vector.s,v 1.47 2001/07/17 13:52:25 mrg Exp $ */
/* $NetBSD: vector.s,v 1.48 2001/09/21 14:12:52 fvdl Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -202,7 +202,7 @@ XINTR(irq_num): ;\
jnz 4f ;\
movl %esp,%eax /* 0 means frame pointer */ ;\
4: pushl %eax ;\
call IH_FUN(%ebx) /* call it */ ;\
call *IH_FUN(%ebx) /* call it */ ;\
addl $4,%esp /* toss the arg */ ;\
STRAY_INTEGRATE /* maybe he claimed it */ ;\
incl IH_COUNT(%ebx) /* count the intrs */ ;\