summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-09-19 17:20:44 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-09-19 17:20:44 +0000
commit3ec89d7c63af759d226a234bb81716dbf69da4f0 (patch)
treecb5c45922e65efce55f187d9147e6ccf561567ca /sys/arch/i386/stand
parent05289977dd22788ad17da20e49aee8f5eea5c11b (diff)
Make newer gcc happy
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/libsa/exec_i386.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c
index e87da91c7d8..ccbac6da03f 100644
--- a/sys/arch/i386/stand/libsa/exec_i386.c
+++ b/sys/arch/i386/stand/libsa/exec_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_i386.c,v 1.16 1997/09/17 17:56:10 mickey Exp $ */
+/* $OpenBSD: exec_i386.c,v 1.17 1997/09/19 17:20:43 niklas Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -43,6 +43,9 @@
#define round_to_size(x) (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1))
+typedef void (*startfuncp)(int, int, int, int, int, int, int, int)
+ __attribute__ ((noreturn));
+
void
machdep_start(startaddr, howto, loadaddr, ssym, esym)
char *startaddr, *loadaddr, *ssym, *esym;
@@ -67,9 +70,8 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym)
printf("entry point at 0x%x\n", (int)startaddr);
/* stack and the gung is ok at this point, so, no need for asm setup */
- (*(int __attribute__((noreturn))(*)(int,int,int,int,int,int,int,int))
- startaddr)(howto, bootdev, BOOT_APIVER, round_to_size(esym),
- extmem, cnvmem, (int)&BIOS_vars, sizeof(BIOS_vars));
+ (*(startfuncp)startaddr)(howto, bootdev, BOOT_APIVER,
+ round_to_size(esym), extmem, cnvmem, (int)&BIOS_vars,
+ sizeof (BIOS_vars));
/* not reached */
}
-