We don't seem to need abort() any more -- presumably GCC is no longer

generating calls to it.
This commit is contained in:
bjh21 2002-03-18 21:14:34 +00:00
parent f9a48a09ad
commit 6a7bb64ae1

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.13 2001/11/16 13:41:58 bjh21 Exp $ */
/* $NetBSD: machdep.c,v 1.14 2002/03/18 21:14:34 bjh21 Exp $ */
/*-
* Copyright (c) 1998 Ben Harris
@ -33,7 +33,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2001/11/16 13:41:58 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2002/03/18 21:14:34 bjh21 Exp $");
#include <sys/buf.h>
#include <sys/kernel.h>
@ -131,18 +131,6 @@ haltsys:
panic("cpu_reboot failed");
}
/*
* This is provided because GCC seems to generate calls to it.
*/
void abort __P((void)) __attribute__((__noreturn__));
void
abort()
{
panic("abort() called -- noreturn function returned?");
}
/*
* cpu_startup: allocate memory for variable-sized tables,
* initialize cpu, and do autoconfiguration.