summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/libsa/gateA20.c
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-03-21 21:37:42 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-03-21 21:37:42 +0000
commitb6bedfcd017a291b7e736a57597a5dbeb552cd1d (patch)
tree149286d1847005927bde0e9a93f2efa1c1a6278a /sys/arch/amd64/stand/libsa/gateA20.c
parent8c6e84988022919eccc722f39a6b132f873506d7 (diff)
Enter pxeboot on amd64. Initially intended to support network installs
using bsd.rd over TFTP. ok deraadt@
Diffstat (limited to 'sys/arch/amd64/stand/libsa/gateA20.c')
-rw-r--r--sys/arch/amd64/stand/libsa/gateA20.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/amd64/stand/libsa/gateA20.c b/sys/arch/amd64/stand/libsa/gateA20.c
index 26cfb3539cb..66a11a08cdd 100644
--- a/sys/arch/amd64/stand/libsa/gateA20.c
+++ b/sys/arch/amd64/stand/libsa/gateA20.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gateA20.c,v 1.1 2004/02/03 12:09:47 mickey Exp $ */
+/* $OpenBSD: gateA20.c,v 1.2 2004/03/21 21:37:41 tom Exp $ */
/*
* Ported to boot 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
@@ -36,6 +36,8 @@
#include "libsa.h"
+int ps2model = 0; /* Not set in amd64 */
+
#define KB_A20 0xdf /* enable A20,
enable output buffer full interrupt
enable data line
@@ -43,6 +45,16 @@
/*
+ * "Probe"-style routine (no parameters) to turn A20 on
+ */
+void
+gateA20on(void)
+{
+ gateA20(1);
+}
+
+
+/*
* Gate A20 for high memory
*/
void