LIVE FIX for 2.1.20

Marcin Dalecki (dalecki@sub994.sub.uni-goettingen.de)
Sat, 4 Jan 1997 13:28:20 +0100 (MET)


The following double patch makes 2.1.20 functional again.

It fixes tow problems:
1. The kernel breakdown (oops) an reboot
2. The exporting of kernel symbols for modules

-------- Snip snip snip----------
diff -ur linux-2.1.20/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
--- linux-2.1.20/arch/i386/kernel/process.c Sat Jan 4 01:01:23 1997
+++ linux/arch/i386/kernel/process.c Sat Jan 4 02:33:08 1997
@@ -285,7 +285,7 @@
sti();
/* rebooting needs to touch the page at absolute addr 0 */
pg0[0] = 7;
- *((unsigned short *)0x472) = reboot_mode;
+ *((unsigned short *)__va(0x472)) = reboot_mode;
for (;;) {
int i;
for (i=0; i<100; i++) {
@@ -541,7 +541,7 @@
dump->u_dsize -= dump->u_tsize;
dump->u_ssize = 0;
for (i = 0; i < 8; i++)
- dump->u_debugreg[i] = current->debugreg[i];
+ dump->u_debugreg[i] = current->debugreg[i];

if (dump->start_stack < TASK_SIZE)
dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT;
diff -ur linux-2.1.20/kernel/ksyms.c linux/kernel/ksyms.c
--- linux-2.1.20/kernel/ksyms.c Tue Dec 31 03:14:27 1996
+++ linux/kernel/ksyms.c Sat Jan 4 01:05:01 1997
@@ -9,8 +9,8 @@
* by Bjorn Ekwall <bj0rn@blox.se>
*/

-#include <linux/module.h>
#include <linux/config.h>
+#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/smp.h>
#include <linux/fs.h>
@@ -330,7 +330,6 @@
EXPORT_SYMBOL(___strtok);
EXPORT_SYMBOL(init_fifo);
EXPORT_SYMBOL(super_blocks);
-EXPORT_SYMBOL(reuse_list);
EXPORT_SYMBOL(fifo_inode_operations);
EXPORT_SYMBOL(chrdev_inode_operations);
EXPORT_SYMBOL(blkdev_inode_operations);

--------------Sinp sinp sinp------------