Remove unused variables. Add required headers and function

declarations.
This commit is contained in:
Jacques Vidrine 2004-01-06 18:53:26 +00:00
parent b277f64b8b
commit 78ea1df143
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124182
7 changed files with 12 additions and 6 deletions

View File

@ -214,7 +214,6 @@ __fpu_mov(struct fpemu *fe, int type, int rd, int rs2, u_int32_t nand,
u_int32_t xor)
{
u_int64_t tmp64;
u_int32_t *p32;
int i;
if (type == FTYPE_INT || type == FTYPE_SNG)

View File

@ -96,7 +96,6 @@ int \
_Qp_f ## name(u_int *a, u_int *b) \
{ \
struct fpemu fe; \
struct fpn *r; \
__asm __volatile("stx %%fsr, %0" : "=m" (fe.fe_fsr) :); \
fe.fe_f1.fp_sign = a[0] >> 31; \
fe.fe_f1.fp_sticky = 0; \

View File

@ -28,15 +28,16 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/signal.h>
#include <sys/ucontext.h>
#include <machine/frame.h>
#include <machine/sigframe.h>
#include <errno.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
__weak_reference(__signalcontext, signalcontext);

View File

@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
extern char __sigtramp[];
extern int sysarch(int op, char *parms);
static const struct sparc_sigtramp_install_args sia = { __sigtramp, NULL };
@ -42,5 +43,5 @@ void
__sparc_sigtramp_setup(void)
{
sysarch(SPARC_SIGTRAMP_INSTALL, &sia);
sysarch(SPARC_SIGTRAMP_INSTALL, (char *)&sia);
}

View File

@ -36,8 +36,10 @@ __FBSDID("$FreeBSD$");
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "fpu_extern.h"
#include "__sparc_utrap_private.h"
static const char *utrap_msg[] = {

View File

@ -30,6 +30,8 @@ __FBSDID("$FreeBSD$");
#include <machine/utrap.h>
#include <machine/sysarch.h>
extern int sysarch(int op, char *parms);
int
__sparc_utrap_install(utrap_entry_t type, utrap_handler_t new_precise,
utrap_handler_t new_deferred, utrap_handler_t *old_precise,

View File

@ -36,6 +36,8 @@ __FBSDID("$FreeBSD$");
#include "__sparc_utrap_private.h"
extern int sysarch(int op, char *parms);
static const struct sparc_utrap_args ua[] = {
{ UT_FP_DISABLED, __sparc_utrap_fp_disabled, NULL, NULL, NULL },
{ UT_FP_EXCEPTION_IEEE_754, __sparc_utrap_gen, NULL, NULL, NULL },
@ -45,7 +47,7 @@ static const struct sparc_utrap_args ua[] = {
};
static const struct sparc_utrap_install_args uia[] = {
sizeof (ua) / sizeof (*ua), ua
{ sizeof (ua) / sizeof (*ua), ua }
};
void __sparc_utrap_setup(void) __attribute__((constructor));
@ -54,5 +56,5 @@ void
__sparc_utrap_setup(void)
{
sysarch(SPARC_UTRAP_INSTALL, &uia);
sysarch(SPARC_UTRAP_INSTALL, (char *)&uia);
}