patch-1.3.46 linux/arch/i386/kernel/head.S
Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/i386/defconfig
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Dec 11 09:55:42 1995
- Orig file:
v1.3.45/linux/arch/i386/kernel/head.S
- Orig date:
Sat Nov 11 17:41:32 1995
diff -u --recursive --new-file v1.3.45/linux/arch/i386/kernel/head.S linux/arch/i386/kernel/head.S
@@ -12,6 +12,7 @@
#include <linux/tasks.h>
#include <linux/linkage.h>
#include <asm/segment.h>
+#include <linux/config.h>
#define CL_MAGIC_ADDR 0x90020
#define CL_MAGIC 0xA33F
@@ -382,7 +383,11 @@
ALIGN
.word 0
gdt_descr:
+#ifdef CONFIG_APM
+ .word (11+2*NR_TASKS)*8-1
+#else
.word (8+2*NR_TASKS)*8-1
+#endif
.long 0xc0000000+SYMBOL_NAME(gdt)
/*
@@ -399,3 +404,8 @@
.quad 0x0000000000000000 /* not used */
.quad 0x0000000000000000 /* not used */
.fill 2*NR_TASKS,8,0 /* space for LDT's and TSS's etc */
+#ifdef CONFIG_APM
+ .quad 0x00c09a0000000000 /* APM CS code */
+ .quad 0x00809a0000000000 /* APM CS 16 code (16 bit) */
+ .quad 0x00c0920000000000 /* APM DS data */
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this