]> git.pld-linux.org Git - packages/dosemu.git/blob - dosemu-kernel-2.6.patch
- Upgrade to 1.2.0
[packages/dosemu.git] / dosemu-kernel-2.6.patch
1 --- dosemu-1.1.5/src/dosext/dpmi/dpmi.h      17 Sep 2003 14:40:54 -0000      1.1.2.2
2 +++ dosemu-1.1.5/src/dosext/dpmi/dpmi.h      30 Sep 2003 00:36:51 -0000      1.1.2.3
3 @@ -31,8 +31,8 @@
4  /* Aargh!! Is this the only way we have to know if a signal interrupted
5   * us in DPMI server or client code? */
6  #ifdef __linux__
7 -#define UCODESEL 0x23
8 -#define UDATASEL 0x2b
9 +#define UCODESEL ucodesel
10 +#define UDATASEL udatasel
11  #endif
12
13  /* DANG_BEGIN_REMARK
14 --- dosemu-1.1.5/src/emu-i386/cpu.c       23 Jun 2003 00:02:08 -0000      1.1.1.1
15 +++ dosemu-1.1.5/src/emu-i386/cpu.c       30 Sep 2003 00:36:51 -0000      1.1.1.1.4.1
16 @@ -96,6 +96,12 @@
17  };
18  #endif
19
20 +/* DOSEMU code selector and data selector. Initialized at startup.
21 + * These used to be 0x23 and 0x2b, but change to 0x73 and 0x7b
22 + * in Linux kernel 2.6
23 + */
24 +unsigned short ucodesel, udatasel;
25 +
26  /*
27   * DANG_BEGIN_FUNCTION cpu_trap_0f
28   *
29 @@ -241,6 +247,12 @@
30  #else
31    REG(eflags) |= (VIF | VIP);
32  #endif
33 +
34 +  /* initialize user data & code selector values (used by DPMI code) */
35 +  __asm__ volatile (
36 +  " movw %%cs, ucodesel\n"
37 +  " movw %%ds, udatasel\n"
38 +  ::);
39
40  #ifdef X86_EMULATOR
41    if (config.cpuemu) {
42 --- dosemu-1.1.5/src/include/cpu.h       23 Jun 2003 21:13:15 -0000      1.2
43 +++ dosemu-1.1.5/src/include/cpu.h       30 Sep 2003 00:36:51 -0000      1.2.4.1
44 @@ -301,4 +301,6 @@
45  extern int write_port_w(unsigned int value,unsigned short port);
46  int do_soft_int(int intno);
47
48 +extern unsigned short ucodesel, udatasel;
49 +
50  #endif /* CPU_H */
This page took 0.644264 seconds and 3 git commands to generate.