fix kernel build error, such a configs w/o kbd, ms.
(approved by martin)
This commit is contained in:
parent
9ba98c598b
commit
54e4cb1a6c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.28 2003/01/18 06:55:25 thorpej Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.29 2003/01/24 16:54:34 nakayama Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -30,6 +30,7 @@
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "firm_events.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -74,7 +75,9 @@
|
||||
/* Provide a the name of the architecture we're emulating */
|
||||
char machine_arch32[] = "sparc";
|
||||
|
||||
#if NFIRM_EVENTS > 0
|
||||
static int ev_out32 __P((struct firm_event *, int, struct uio *));
|
||||
#endif
|
||||
|
||||
void netbsd32_upcall(struct lwp *, int, int, int, void *, void *, void *, sa_upcall_t);
|
||||
|
||||
@ -102,8 +105,10 @@ netbsd32_setregs(l, pack, stack)
|
||||
p->p_flag |= P_32;
|
||||
|
||||
/* Setup the ev_out32 hook */
|
||||
#if NFIRM_EVENTS > 0
|
||||
if (ev_out32_hook == NULL)
|
||||
ev_out32_hook = ev_out32;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set the registers to 0 except for:
|
||||
@ -848,6 +853,7 @@ netbsd32_cpu_setmcontext(l, mcp, flags)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if NFIRM_EVENTS > 0
|
||||
/*
|
||||
* Write out a series of 32-bit firm_events.
|
||||
*/
|
||||
@ -870,6 +876,7 @@ ev_out32(e, n, uio)
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ioctl code
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sunos32_machdep.c,v 1.9 2003/01/18 06:55:25 thorpej Exp $ */
|
||||
/* $NetBSD: sunos32_machdep.c,v 1.10 2003/01/24 16:54:34 nakayama Exp $ */
|
||||
/* from: NetBSD: sunos_machdep.c,v 1.14 2001/01/29 01:37:56 mrg Exp */
|
||||
|
||||
/*
|
||||
@ -31,6 +31,7 @@
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_ddb.h"
|
||||
#include "firm_events.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -88,7 +89,9 @@ struct sunos32_sigframe {
|
||||
struct sunos32_sigcontext sf_sc; /* actual sigcontext */
|
||||
};
|
||||
|
||||
#if NFIRM_EVENTS > 0
|
||||
static int ev_out32 __P((struct firm_event *, int, struct uio *));
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set up registers on exec.
|
||||
@ -114,8 +117,10 @@ sunos32_setregs(l, pack, stack)
|
||||
p->p_flag |= P_32;
|
||||
|
||||
/* Setup the ev_out32 hook */
|
||||
#if NFIRM_EVENTS > 0
|
||||
if (ev_out32_hook == NULL)
|
||||
ev_out32_hook = ev_out32;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set the registers to 0 except for:
|
||||
@ -360,6 +365,7 @@ sunos32_sys_sigreturn(l, v, retval)
|
||||
return (EJUSTRETURN);
|
||||
}
|
||||
|
||||
#if NFIRM_EVENTS > 0
|
||||
/*
|
||||
* Write out a series of 32-bit firm_events.
|
||||
*/
|
||||
@ -382,3 +388,4 @@ ev_out32(e, n, uio)
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.sun,v 1.6 2002/10/26 19:11:13 martin Exp $
|
||||
# $NetBSD: files.sun,v 1.7 2003/01/24 16:54:35 nakayama Exp $
|
||||
#
|
||||
# Configuration file for devices found on Sun machines.
|
||||
#
|
||||
@ -9,7 +9,7 @@
|
||||
#
|
||||
|
||||
define firm_events
|
||||
file dev/sun/event.c firm_events
|
||||
file dev/sun/event.c firm_events needs-flag
|
||||
|
||||
|
||||
# upper layer of sun kbd driver
|
||||
|
Loading…
Reference in New Issue
Block a user