56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
/*
|
|
* Selector definitions
|
|
*
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_SELECTORS_H
|
|
#define __WINE_SELECTORS_H
|
|
|
|
#include "windows.h"
|
|
#include "ldt.h"
|
|
|
|
extern WORD SELECTOR_AllocBlock( const void *base, DWORD size,
|
|
enum seg_type type, BOOL32 is32bit,
|
|
BOOL32 readonly );
|
|
extern WORD SELECTOR_ReallocBlock( WORD sel, const void *base, DWORD size,
|
|
enum seg_type type, BOOL32 is32bit,
|
|
BOOL32 readonly );
|
|
extern void SELECTOR_FreeBlock( WORD sel, WORD count );
|
|
|
|
#ifndef WINELIB
|
|
|
|
#ifdef linux
|
|
#define WINE_DATA_SELECTOR 0x2b
|
|
#define WINE_CODE_SELECTOR 0x23
|
|
#endif /* linux */
|
|
|
|
#ifdef __NetBSD__
|
|
#define WINE_DATA_SELECTOR 0x1f
|
|
#define WINE_CODE_SELECTOR 0x17
|
|
#endif /* NetBSD */
|
|
|
|
#ifdef __FreeBSD__
|
|
#define WINE_DATA_SELECTOR 0x27
|
|
#define WINE_CODE_SELECTOR 0x1f
|
|
#endif /* FreeBSD */
|
|
|
|
#if defined(__svr4__) || defined(_SCO_DS)
|
|
#define WINE_DATA_SELECTOR 0x1f
|
|
#define WINE_CODE_SELECTOR 0x17
|
|
#endif /* svr4 || SCO_DS */
|
|
|
|
#ifdef __EMX__
|
|
#define WINE_DATA_SELECTOR 0x00 /* FIXME: This is wrong */
|
|
#define WINE_CODE_SELECTOR 0x00
|
|
#endif /* OS/2 */
|
|
|
|
#else /* WINELIB */
|
|
|
|
#define WINE_DATA_SELECTOR 0x00
|
|
#define WINE_CODE_SELECTOR 0x00
|
|
|
|
#endif /* WINELIB */
|
|
|
|
#endif /* __WINE_SELECTORS_H */
|