lkml.org 
[lkml]   [1996]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Trouble with loading dosemu moduel
Gary Abrahams wrote:
>
> Howdy,
>
> I am having trouble loading my dosemu module after compliling dosemu
> with linux 2.0.0 (I have had this trouble with other kernels).
>
> When I try to load the module with the script supplied it says
> something like
>
> 'kernel 2.0.0 does not match 2.0.0' (that is not exact but something
> like that).
>
> Does anyone know how to solve this.
>
> Can they email me as I am not on the list.
>
> Thanks
>
> Gary Abrahams
> gazza@connexus.apana.org.au

The dosemu team does a lot of things well, but occasionally the
development code drops assume non-standard fiddling in the kernel source
:-)). Try the attached patch - it works for me. Will someone on the
dosemu team please get back to me if this is not correct? Thanks.

- Steve

p.s. - This patch is against release kernel 2.0.0!

--
___________________________________________________________
|Steven N. Hirsch "Anything worth doing is worth |
|University of Vermont overdoing.." - Hunter S. Thompson |
|Computer Science / EE |
------------------------------------------------------------
diff -wBcr /via/usr.local/src/linux-2.0.0/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
*** /via/usr.local/src/linux-2.0.0/arch/i386/kernel/signal.c Mon May 6 09:31:18 1996
--- linux/arch/i386/kernel/signal.c Wed Jun 19 22:45:47 1996
***************
*** 60,66 ****
memcpy_fromfs(&current->tss.i387.hard, buf, sizeof(*buf));
}

! static void restore_i387(struct _fpstate *buf)
{
#ifndef CONFIG_MATH_EMULATION
restore_i387_hard(buf);
--- 60,66 ----
memcpy_fromfs(&current->tss.i387.hard, buf, sizeof(*buf));
}

! void restore_i387(struct _fpstate *buf)
{
#ifndef CONFIG_MATH_EMULATION
restore_i387_hard(buf);
diff -wBcr /via/usr.local/src/linux-2.0.0/include/asm-i386/signal.h linux/include/asm-i386/signal.h
*** /via/usr.local/src/linux-2.0.0/include/asm-i386/signal.h Fri Mar 1 00:50:56 1996
--- linux/include/asm-i386/signal.h Wed Jun 19 22:53:19 1996
***************
*** 92,97 ****
--- 92,100 ----

#ifdef __KERNEL__
#include <asm/sigcontext.h>
+
+ void restore_i387(struct _fpstate *buf);
+
#endif

#endif
diff -wBcr /via/usr.local/src/linux-2.0.0/kernel/ksyms.c linux/kernel/ksyms.c
*** /via/usr.local/src/linux-2.0.0/kernel/ksyms.c Wed May 29 09:42:27 1996
--- linux/kernel/ksyms.c Wed Jun 19 22:49:05 1996
***************
*** 59,64 ****
--- 59,65 ----
#include <linux/kerneld.h>
#endif
#include <asm/irq.h>
+ #include <asm/signal.h>
#ifdef __SMP__
#include <linux/smp.h>
#endif
***************
*** 300,305 ****
--- 301,307 ----

/* Signal interfaces */
X(send_sig),
+ X(restore_i387),

/* Program loader interfaces */
X(setup_arg_pages),
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.035 / U:6.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site