
Fri Apr 5 15:22:55 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [controls/button.c] [controls/static.c] Changes to use WND * wherever possible. * [debugger/dbg.y] [debugger/debug.l] Added 'info module' and 'walk module' commands. * [if1632/Makefile.in] [if1632/relay.c] [tools/build.c] Added assembly code generation to call from Wine into 32-bit code. Changed all 'call32' references in 'callfrom16' to avoid confusion with Win32 routines. * [include/callback.h] Added prototypes for 32-bit callbacks. * [loader/module.c] [if1632/relay32.c] [tools/build.c] Unified 16- and 32-bit modules. The fake module for 32-bit DLLs is now generated by the build program. * [include/module.h] Added extra info to NE_MODULE for Win32 modules to point to the PE module data. * [include/pe_image.h] [loader/pe_image.c] [win32/resource.c] Removed the wine_files list. The PE data for a module can now be accessed with the NE_WIN32_MODULE macro. * [loader/signal.c] [miscemu/instr.c] Don't start the BIOS timer at startup, but only after an access to the 0x40 segment. * [memory/local.c] Changed LOCAL_Lock() to return a 32-bit pointer. * [misc/main.c] [include/dlls.h] Some built-in DLLs (like KERNEL) can no longer be disabled from the command-line. Thu Apr 4 19:54:39 1996 Keith Reynolds <keithr@sco.COM> * [*/*] A lot of small changes to support SCO OpenServer 5. Thu Apr 4 15:38:13 1996 Frans van Dorsselaer <dorssel@rulhm1.leidenuniv.nl> * [controls/edit.c] Fixed GetKeyState() call to use 0x8000 convention. * [include/windows.h] Added undocumented messages EM_SCROLL and EM_GETTHUMB. Thu Apr 4 09:52:52 1996 John Harvey <john@division.co.uk> * [if1632/except.S] Modified code to assemble on unixware. Wed Apr 3 09:38:26 1996 Juergen Marquardt <marqu@lunar.advantest.de> * [objects/font.c] Implementation of a second font cache which will be updated dynamically. Mon Apr 1 16:47:40 1996 Robert Pouliot <krynos@qbc.clic.net> * [resources/sysres_Cz.rc] [resources/sysres_Da.rc] [resources/sysres_De.rc] [resources/sysres_Eo.rc] [resources/sysres_Es.rc] [resources/sysres_Fi.rc] [resources/sysres_No.rc] [resources/TODO] Updated FIND_TEXT and REPLACE_TEXT to work like the English version.
84 lines
2.3 KiB
C
84 lines
2.3 KiB
C
/*
|
|
* 16-bit mode stack frame layout
|
|
*
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef WINE_STACKFRAME_H
|
|
#define WINE_STACKFRAME_H
|
|
|
|
#include <windows.h>
|
|
#include "ldt.h"
|
|
|
|
#ifndef WINELIB
|
|
#pragma pack(1)
|
|
#endif
|
|
|
|
/* 16-bit stack layout after CallFrom16() */
|
|
typedef struct
|
|
{
|
|
WORD saved_ss; /* saved previous 16-bit stack */
|
|
WORD saved_sp;
|
|
WORD es;
|
|
WORD ds; /* 16-bit ds */
|
|
DWORD entry_point WINE_PACKED; /* entry point to call */
|
|
WORD ordinal_number; /* ordinal number of entry point */
|
|
WORD dll_id; /* DLL id of entry point */
|
|
WORD bp; /* 16-bit bp */
|
|
WORD ip; /* return address */
|
|
WORD cs;
|
|
WORD args[1]; /* arguments to API function */
|
|
} STACK16FRAME;
|
|
|
|
/* 32-bit stack layout after CallTo16() */
|
|
typedef struct
|
|
{
|
|
DWORD saved_esp; /* saved previous 32-bit stack */
|
|
DWORD edi; /* saved registers */
|
|
DWORD esi;
|
|
DWORD edx;
|
|
DWORD ecx;
|
|
DWORD ebx;
|
|
DWORD ebp; /* saved 32-bit frame pointer */
|
|
DWORD retaddr; /* return address */
|
|
DWORD codeselector; /* code selector for return address */
|
|
DWORD args[1]; /* arguments to 16-bit function */
|
|
} STACK32FRAME;
|
|
|
|
#ifndef WINELIB
|
|
#pragma pack(4)
|
|
#endif
|
|
|
|
/* Saved 16-bit stack for current process (Win16 only) */
|
|
extern WORD IF1632_Saved16_ss;
|
|
extern WORD IF1632_Saved16_sp;
|
|
|
|
/* Saved 32-bit stack for current process (Win16 only) */
|
|
extern DWORD IF1632_Saved32_esp;
|
|
extern SEGPTR IF1632_Stack32_base;
|
|
|
|
/* Original Unix stack */
|
|
extern DWORD IF1632_Original32_esp;
|
|
|
|
#ifndef WINELIB
|
|
#define CURRENT_STACK16 \
|
|
((STACK16FRAME *)PTR_SEG_OFF_TO_LIN(IF1632_Saved16_ss,IF1632_Saved16_sp))
|
|
|
|
#define CURRENT_DS (CURRENT_STACK16->ds)
|
|
|
|
/* Make a segmented pointer from a pointer to a variable located */
|
|
/* on the 32-bit stack for the current task. */
|
|
#if 0
|
|
#define MAKE_SEGPTR(ptr) \
|
|
((SEGPTR)IF1632_Stack32_base + \
|
|
((DWORD)(ptr) - (DWORD)PTR_SEG_TO_LIN(IF1632_Stack32_base)))
|
|
#endif
|
|
SEGPTR MAKE_SEGPTR(void *ptr);
|
|
#else
|
|
#define CURRENT_STACK16 error.error
|
|
#define CURRENT_DS 0
|
|
#define MAKE_SEGPTR(ptr) ((SEGPTR)ptr)
|
|
#endif
|
|
|
|
#endif /* WINE_STACKFRAME_H */
|