summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/apm_segments.h
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-03-11 06:48:57 +0000
committernate <nate@FreeBSD.org>1996-03-11 06:48:57 +0000
commit878cd164815f22dca0b083ca1ca21d670f44c9d7 (patch)
treef3645cd2f6be08eeedfda86ff7b725513302df03 /sys/i386/include/apm_segments.h
parent164d339617804a3cce0a539f0c5fe3c9af30f59b (diff)
downloadFreeBSD-src-878cd164815f22dca0b083ca1ca21d670f44c9d7.zip
FreeBSD-src-878cd164815f22dca0b083ca1ca21d670f44c9d7.tar.gz
Bring in most of Bruce's prot_to_real() changes into the APM BIOS
startup code. Reviewed by: bde
Diffstat (limited to 'sys/i386/include/apm_segments.h')
-rw-r--r--sys/i386/include/apm_segments.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/i386/include/apm_segments.h b/sys/i386/include/apm_segments.h
index c76df07..ff966cc 100644
--- a/sys/i386/include/apm_segments.h
+++ b/sys/i386/include/apm_segments.h
@@ -12,7 +12,7 @@
*
* Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
- * $Id: apm_segments.h,v 1.3 1995/02/17 02:22:46 phk Exp $
+ * $Id: apm_segments.h,v 1.4 1995/05/30 08:00:25 rgrimes Exp $
*/
#ifndef _MACHINE_APM_SEGMENTS_H
@@ -21,15 +21,18 @@
#define SIZEOF_GDT 8
#define BOOTSTRAP_GDT_NUM 32
-#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 3)
-#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 2)
-#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 1)
+#define APM_INIT_CS_INDEX (BOOTSTRAP_GDT_NUM - 4)
+#define APM_INIT_DS_INDEX (BOOTSTRAP_GDT_NUM - 3)
+#define APM_INIT_CS16_INDEX (BOOTSTRAP_GDT_NUM - 2)
+#define APM_INIT_DS16_INDEX (BOOTSTRAP_GDT_NUM - 1)
#define APM_INIT_CS_SEL (APM_INIT_CS_INDEX << 3)
#define APM_INIT_DS_SEL (APM_INIT_DS_INDEX << 3)
#define APM_INIT_CS16_SEL (APM_INIT_CS16_INDEX << 3)
+#define APM_INIT_DS16_SEL (APM_INIT_DS16_INDEX << 3)
#define CS32_ATTRIB 0x409e
-#define CS16_ATTRIB 0x009e
#define DS32_ATTRIB 0x4092
+#define CS16_ATTRIB 0x009e
+#define DS16_ATTRIB 0x0092
#endif
OpenPOWER on IntegriCloud