stdlibc: \!perror()
[meinos.git] / kernel2 / include / vm86.h
blob65b28503f1faeff1b5f31aba22886b8900757154
1 /*
2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _VM86_H_
20 #define _VM86_H_
22 #include <procm.h>
23 #include <sys/types.h>
25 #define vm86_create_pagedir() memuser_create_pagedir()
27 struct vm86_segmentregs {
28 uint32_t es;
29 uint32_t ds;
30 uint32_t fs;
31 uint32_t gs;
34 struct {
35 uint32_t *es;
36 uint32_t *ds;
37 uint32_t *fs;
38 uint32_t *gs;
39 } vm86_curregs;
41 proc_t *vm86_proc_create(const char *name,uid_t uid,gid_t gid,proc_t *parent);
42 void vm86_save_segregs(proc_t *proc);
43 void vm86_load_segregs(proc_t *proc);
45 #endif