summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-09-15 03:50:08 +0000
committerkato <kato@FreeBSD.org>1998-09-15 03:50:08 +0000
commit3d9ba41c91ab87edca4edc3976978bb4f087d692 (patch)
treeae077eaeaa98b65046651eee001da9c822f44bb9
parent8c81f46123d257bd64ff2a626071e926a25b4adb (diff)
downloadFreeBSD-src-3d9ba41c91ab87edca4edc3976978bb4f087d692.zip
FreeBSD-src-3d9ba41c91ab87edca4edc3976978bb4f087d692.tar.gz
Sync with sys/i386/i386/machdep.c revision up to 1.309.
-rw-r--r--sys/pc98/i386/machdep.c41
-rw-r--r--sys/pc98/pc98/machdep.c41
2 files changed, 80 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 738cf19..9b4ce1a 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.93 1998/09/01 02:04:17 kato Exp $
+ * $Id: machdep.c,v 1.94 1998/09/01 07:17:36 kato Exp $
*/
#include "apm.h"
@@ -221,6 +221,27 @@ sysctl_hw_availpages SYSCTL_HANDLER_ARGS
SYSCTL_PROC(_hw, OID_AUTO, availpages, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_availpages, "I", "");
+static int
+sysctl_machdep_msgbuf SYSCTL_HANDLER_ARGS
+{
+ int error;
+
+ /* Unwind the buffer, so that is linear (possibly starting with
+ * some initial nulls.
+ */
+ error=sysctl_handle_opaque(oidp,msgbufp->msg_ptr+msgbufp->msg_bufr,
+ msgbufp->msg_size-msgbufp->msg_bufr,req);
+ if(error) return(error);
+ if(msgbufp->msg_bufr>0) {
+ error=sysctl_handle_opaque(oidp,msgbufp->msg_ptr,
+ msgbufp->msg_bufr,req);
+ }
+ return(error);
+}
+
+SYSCTL_PROC(_machdep, OID_AUTO, msgbuf, CTLTYPE_STRING|CTLFLAG_RD,
+ 0, 0, sysctl_machdep_msgbuf, "A","");
+
int bootverbose = 0, Maxmem = 0;
#ifdef PC98
int Maxmem_under16M = 0;
@@ -1832,6 +1853,24 @@ set_regs(p, regs)
return (0);
}
+int
+fill_fpregs(p, fpregs)
+ struct proc *p;
+ struct fpreg *fpregs;
+{
+ bcopy(&p->p_addr->u_pcb.pcb_savefpu, fpregs, sizeof *fpregs);
+ return (0);
+}
+
+int
+set_fpregs(p, fpregs)
+ struct proc *p;
+ struct fpreg *fpregs;
+{
+ bcopy(fpregs, &p->p_addr->u_pcb.pcb_savefpu, sizeof *fpregs);
+ return (0);
+}
+
#ifndef DDB
void
Debugger(const char *msg)
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 738cf19..9b4ce1a 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.93 1998/09/01 02:04:17 kato Exp $
+ * $Id: machdep.c,v 1.94 1998/09/01 07:17:36 kato Exp $
*/
#include "apm.h"
@@ -221,6 +221,27 @@ sysctl_hw_availpages SYSCTL_HANDLER_ARGS
SYSCTL_PROC(_hw, OID_AUTO, availpages, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_availpages, "I", "");
+static int
+sysctl_machdep_msgbuf SYSCTL_HANDLER_ARGS
+{
+ int error;
+
+ /* Unwind the buffer, so that is linear (possibly starting with
+ * some initial nulls.
+ */
+ error=sysctl_handle_opaque(oidp,msgbufp->msg_ptr+msgbufp->msg_bufr,
+ msgbufp->msg_size-msgbufp->msg_bufr,req);
+ if(error) return(error);
+ if(msgbufp->msg_bufr>0) {
+ error=sysctl_handle_opaque(oidp,msgbufp->msg_ptr,
+ msgbufp->msg_bufr,req);
+ }
+ return(error);
+}
+
+SYSCTL_PROC(_machdep, OID_AUTO, msgbuf, CTLTYPE_STRING|CTLFLAG_RD,
+ 0, 0, sysctl_machdep_msgbuf, "A","");
+
int bootverbose = 0, Maxmem = 0;
#ifdef PC98
int Maxmem_under16M = 0;
@@ -1832,6 +1853,24 @@ set_regs(p, regs)
return (0);
}
+int
+fill_fpregs(p, fpregs)
+ struct proc *p;
+ struct fpreg *fpregs;
+{
+ bcopy(&p->p_addr->u_pcb.pcb_savefpu, fpregs, sizeof *fpregs);
+ return (0);
+}
+
+int
+set_fpregs(p, fpregs)
+ struct proc *p;
+ struct fpreg *fpregs;
+{
+ bcopy(fpregs, &p->p_addr->u_pcb.pcb_savefpu, sizeof *fpregs);
+ return (0);
+}
+
#ifndef DDB
void
Debugger(const char *msg)
OpenPOWER on IntegriCloud