Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

v86.h

Go to the documentation of this file.
00001 /*!     \file include/arch/v86.h
00002  *      \brief Virtual 8086 mode header.
00003  *      \author Andrea Righi <drizzt@inwind.it>
00004  *      \date Last update: 2003-11-03
00005  *      \note Copyright (C) 2003 Andrea Righi
00006  */
00007 
00008 #ifndef V86_H
00009 #define V86_H
00010 
00011 #include <kernel/task.h>
00012 
00013 //! Virtual-8086 mode flag bit of the EFLAGS register.
00014 #define EFLAGS_VM       0x20000
00015 
00016 //! Context of a Virtual 8086 task.
00017 typedef struct v86_context {
00018         dword   err,
00019                 ip,
00020                 cs,
00021                 eflags,
00022                 sp,
00023                 ss,
00024                 es,
00025                 ds,
00026                 fs,
00027                 gs;
00028 } v86_context;
00029 
00030 // --- Prototypes ----------------------------------------------------- //
00031 
00032 /** \ingroup Multitasking
00033  *  \defgroup MTVirtual8086 Virtual-8086 Mode
00034  *  The Virtual-8086 mode task manager.
00035  *  @{
00036  */
00037 
00038 task_t *create_v86_process(void *address, void *buffer, size_t size, char *v86name);
00039 void v86_monitor();
00040 
00041 /** @} */ // end of MTVirtual8086
00042 
00043 #endif

Generated on Fri Feb 20 15:32:17 2004 for Minirighi by doxygen1.2.18