Sun Mar 19 16:30:20 1995 Alexandre Julliard (julliard@sunsite.unc.edu) * [*/*] Implemented a new memory mapping scheme. There's no longer a one-to-one mapping between 16-bit and 32-bit pointers. Please see file DEVELOPERS-HINTS for technical details. * [controls/scroll.c] Fixed bug when dragging mouse in horizontal scrollbars. * [tools/build.c] [if1632/*.spec] Removed support for C callback functions and for re-ordering of the 32-bit arguments, as these were never used. This should allow a more efficient callback scheme to be implemented. * [if1632/olecli.spec] Reduced the number of entries to make the 16-bit code fit in 64k. This limitation will soon be removed. * [loader/ldt.c] Rewrote LDT manipulation functions and implemented LDT_GetEntry(). * [memory/global.c] Rewrote Global*() routines to use the new selector allocation mechanism. * [memory/local.c] Rewrote local heap handling to use a Windows-compatible layout (not really finished yet). Implemented TOOLHELP heap-walking routines. * [memory/selector.c] Implemented LDT manipulation API functions. Tue Mar 14 19:50:28 EST 1995 William Magro (wmagro@tc.cornell.edu) * [windows/defdlg.c] Fixed problem where dialogs closed using the System menu ('Close' item or double click on close box) would hang Wine. Sun Mar 12 14:28:13 1995 Michael Patra <micky@marie.physik.TU-Berlin.DE> * [controls/listbox.c] Removed most of the statements for sending a notification message ListBoxDirectory(), DlgDirSelect(), DlgDirList(): Improved the code; Borland's standard file open dialog will work now. * [misc/main.c], [misc/file.c], [miscemu/int21.c] Added support for new command line option "-allowreadonly". If set an attempt to open a read only file in write mode will be converted to opening it read only (many programs try to open all files in read/write mode even if they only intend to read it - this might cause a few under problems under an unix-like environment where most files are read only for a "normal" user) * [loader/selector.c] GetMemoryReference(): Added support for __AHIncr and __AHShift * [misc/dos_fs.c] DOS_SimplifyPath(): This routine simplifies path names ( e.g., it will change "/usr///local/bin/../lib//a" to "/usr/local/lib/a" ) match(): rewritten * [objects/text.c] TEXT_NextLine(): Removed a bug in the handling of LF's * [miscemu/int21.c] GetFileDateTime(): Fixed. SetFileDateTime() is still broken. Sat Mar 11 19:46:19 1995 Martin von Loewis <loewis@informatik.hu-berlin.de> * [controls/menu.c] ChangeMenu: defaults to MF_INSERT InsertMenu: allow insertion even if position is one after last item * [if1632/Imakefile] [if1632/compobj.spec] [if1632/relay.c] [if1632/storage.spec] [include/dlls.h] Added stubs for STORAGE.DLL and COMPOBJ.DLL * [if1632/user.spec] [windows/message.c] InSendMessage: new function * [include/neexe.h][include/ne_image.c] NE_FixupSegment: fixed handling of additive records * [loader/selector.c] GetEntryDLLName: return NULL instead of pointer to DLL.0 if not found * [loader/signal.c] win_fault: Enter debugger on SIGFPE, too Wed Mar 1 21:47:42 1995 Cameron Heide (heide@ee.ualberta.ca) * [miscemu/int*.c] Various minor modifications to the clock tick counter, FindFirst/FindNext funcs, and DPB handling.
82 lines
2.4 KiB
C
82 lines
2.4 KiB
C
|
|
#ifdef linux
|
|
/* Register numbers */
|
|
#define RN_GS 0
|
|
#define RN_FS 1
|
|
#define RN_ES 2
|
|
#define RN_DS 3
|
|
#define RN_EDI 4
|
|
#define RN_ESI 5
|
|
#define RN_EBP 6
|
|
#define RN_ESP 7
|
|
#define RN_EBX 8
|
|
#define RN_EDX 9
|
|
#define RN_ECX 10
|
|
#define RN_EAX 11
|
|
#define RN_TRAPNO 12
|
|
#define RN_ERR 13
|
|
#define RN_EIP 14
|
|
#define RN_CS 15
|
|
#define RN_EFLAGS 16
|
|
#define RN_ESP_AT_SIGNAL 17
|
|
#define RN_SS 18
|
|
#define RN_I387 19
|
|
#define RN_OLDMASK 20
|
|
#define RN_CR2 21
|
|
#endif
|
|
|
|
#if defined(__NetBSD__) || defined(__FreeBSD__)
|
|
#define RN_OLDMASK 1
|
|
/* Register numbers */
|
|
#define RN_ESP 2
|
|
#define RN_EBP 3
|
|
#define RN_ESP_AT_SIGNAL 4
|
|
#define RN_EIP 5
|
|
#define RN_EFLAGS 6
|
|
#define RN_ES 7
|
|
#define RN_DS 8
|
|
#define RN_CS 9
|
|
#define RN_SS 10
|
|
#define RN_EDI 11
|
|
#define RN_ESI 12
|
|
#define RN_EBX 13
|
|
#define RN_EDX 14
|
|
#define RN_ECX 15
|
|
#define RN_EAX 16
|
|
/* NetBSD doesn't context switch gs or fs */
|
|
#define SC_GS 0x27
|
|
#define SC_FS 0x27
|
|
#endif
|
|
|
|
#ifdef linux
|
|
#define SC_GS regval[RN_GS]
|
|
#define SC_FS regval[RN_FS]
|
|
#define I387 regval[RN_I387]
|
|
#define CR2 regval[RN_CR2]
|
|
#endif
|
|
#define SC_ES regval[RN_ES]
|
|
#define SC_DS regval[RN_DS]
|
|
#define SC_EDI(dbg_mask) (regval[RN_EDI] & dbg_mask)
|
|
#define SC_ESI(dbg_mask) (regval[RN_ESI] & dbg_mask)
|
|
#define SC_EBP(dbg_mask) (regval[RN_EBP] & dbg_mask)
|
|
#define SC_ESP(dbg_mask) (regval[RN_ESP] & dbg_mask)
|
|
#define SC_EBX(dbg_mask) (regval[RN_EBX] & dbg_mask)
|
|
#define SC_EDX(dbg_mask) (regval[RN_EDX] & dbg_mask)
|
|
#define SC_ECX(dbg_mask) (regval[RN_ECX] & dbg_mask)
|
|
#define SC_EAX(dbg_mask) (regval[RN_EAX] & dbg_mask)
|
|
#define SC_DI (regval[RN_EDI] & 0xffff)
|
|
#define SC_SI (regval[RN_ESI] & 0xffff)
|
|
#define SC_BP (regval[RN_EBP] & 0xffff)
|
|
#define SC_SP (regval[RN_ESP] & 0xffff)
|
|
#define SC_BX (regval[RN_EBX] & 0xffff)
|
|
#define SC_DX (regval[RN_EDX] & 0xffff)
|
|
#define SC_CX (regval[RN_ECX] & 0xffff)
|
|
#define SC_AX (regval[RN_EAX] & 0xffff)
|
|
#define SC_TRAPNO regval[RN_TRAPNO]
|
|
#define SC_ERR regval[RN_ERR]
|
|
#define SC_EIP(dbg_mask) (regval[RN_EIP] & dbg_mask)
|
|
#define SC_CS regval[RN_CS]
|
|
#define SC_EFLAGS regval[RN_EFLAGS]
|
|
#define ESP_AT_SIGNAL regval[RN_ESP_AT_SIGNAL]
|
|
#define SC_SS regval[RN_SS]
|
|
#define OLDMASK regval[RN_OLDMASK]
|