0768d01522
new experimental stripped-down version of plex86, which is now a user-code-only VM. I ripped out all the fancy stuff in plex86, such that under that right conditions, user-code (protection level 3) can run at near native speeds inside the plex86 VM. The general idea is that bochs emulates all the initial real-mode code, and guest kernel code (protection level 0). When it senses the right conditions (like the context switches to user-code), a shim is called to execute the guest inside the plex86 VM. All guest-generated faults/exceptions are then forwarded back to bochs to be handled in the emulator. Actually, I'm not yet adding the mods to the bochs code (other than the shim code which is in a separate file), until I hear that we're back in a more development mode with bochs after the 2.0 release. The plex86 subdirectory is really a separate project. It's just more convenient to co-develop it with bochs for now. Both projects are currently LGPL, but each should be taken to be a separate project, and have their own license file. Plex86 (it's only a kernel driver now) could ultimately be used with other projects, as it's modular. I talked with Bryce, and we both agreed it's OK to keep plex86 as a subdir in bochs for now.
64 lines
1.4 KiB
C
64 lines
1.4 KiB
C
/* our plex86 compile time configuration options will go here */
|
|
|
|
#ifndef _CONFIG_H_
|
|
#define _CONFIG_H_
|
|
|
|
#define VERSION "Plex86 2002/07/11"
|
|
#define BUGSMAIL "plex86-devel@mail.freesoftware.fsf.org"
|
|
|
|
/* Might need these for some host OS. */
|
|
#define SIZEOF_UNSIGNED_CHAR 0
|
|
#define SIZEOF_UNSIGNED_SHORT 0
|
|
#define SIZEOF_UNSIGNED_INT 0
|
|
#define SIZEOF_UNSIGNED_LONG 0
|
|
#define SIZEOF_UNSIGNED_LONG_LONG 0
|
|
|
|
#if SIZEOF_UNSIGNED_CHAR != 1
|
|
# error "sizeof (unsigned char) != 1"
|
|
#else
|
|
typedef unsigned char Bit8u;
|
|
typedef signed char Bit8s;
|
|
#endif
|
|
|
|
#if SIZEOF_UNSIGNED_SHORT != 2
|
|
# error "sizeof (unsigned short) != 2"
|
|
#else
|
|
typedef unsigned short Bit16u;
|
|
typedef signed short Bit16s;
|
|
#endif
|
|
|
|
#if SIZEOF_UNSIGNED_INT == 4
|
|
typedef unsigned int Bit32u;
|
|
typedef signed int Bit32s;
|
|
#elif SIZEOF_UNSIGNED_LONG == 4
|
|
typedef unsigned long Bit32u;
|
|
typedef signed long Bit32s;
|
|
#else
|
|
# error "can't find sizeof(type) of 4 bytes!"
|
|
#endif
|
|
|
|
#if SIZEOF_UNSIGNED_LONG == 8
|
|
typedef unsigned long Bit64u;
|
|
typedef signed long Bit64s;
|
|
#elif SIZEOF_UNSIGNED_LONG_LONG == 8
|
|
typedef unsigned long long Bit64u;
|
|
typedef signed long long Bit64s;
|
|
#else
|
|
# error "can't find data type of 8 bytes"
|
|
#endif
|
|
|
|
typedef unsigned int Boolean;
|
|
|
|
/*
|
|
* NetBSD just has off_t, which is 64 bits, not loff_t.
|
|
*/
|
|
#ifdef __NetBSD__
|
|
typedef unsigned long long loff_t;
|
|
#endif
|
|
|
|
|
|
/* Some plex86 customization options. */
|
|
#define ANAL_CHECKS 1
|
|
|
|
#endif /* _CONFIG_H_ */
|