aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.21-pre4-sparse/include/asm-xeno
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2003-05-06 14:54:13 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2003-05-06 14:54:13 +0000
commitbeb01bce683c8ee2ca2b5105e5274f2fe56e6cb0 (patch)
tree5d86e454c69ef015d034807f061a68cf72406d64 /xenolinux-2.4.21-pre4-sparse/include/asm-xeno
parent8f6aca9a6b125d8f592ac793f93fcecfbb9f4802 (diff)
downloadxen-beb01bce683c8ee2ca2b5105e5274f2fe56e6cb0.tar.gz
xen-beb01bce683c8ee2ca2b5105e5274f2fe56e6cb0.tar.bz2
xen-beb01bce683c8ee2ca2b5105e5274f2fe56e6cb0.zip
bitkeeper revision 1.208 (3eb7cc95biENxNPLM1gD4B9rpj7H_w)
Makefile: new file Many files: Allow hypercalls from ring 3 (if permitted by ring 1). .del-Config.in~31701845a0b06ec3: Delete: xenolinux-2.4.21-pre4-sparse/drivers/char/Config.in
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/include/asm-xeno')
-rw-r--r--xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h7
-rw-r--r--xenolinux-2.4.21-pre4-sparse/include/asm-xeno/processor.h3
2 files changed, 6 insertions, 4 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h
index 887a01b231..da0e1a19e0 100644
--- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h
+++ b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h
@@ -364,13 +364,14 @@ static inline long HYPERVISOR_kbd_op(unsigned char op, unsigned char val)
return ret;
}
-static inline long HYPERVISOR_iopl(unsigned int new_iopl)
+static inline long HYPERVISOR_set_priv_levels(unsigned int new_io_pl,
+ unsigned int new_hypercall_pl)
{
int ret;
__asm__ __volatile__ (
TRAP_INSTR
- : "=a" (ret) : "0" (__HYPERVISOR_iopl),
- "b" (new_iopl) );
+ : "=a" (ret) : "0" (__HYPERVISOR_set_priv_levels),
+ "b" (new_io_pl), "c" (new_hypercall_pl) );
return ret;
}
diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/processor.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/processor.h
index 86b0020c23..d3547ea2bc 100644
--- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/processor.h
+++ b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/processor.h
@@ -356,6 +356,7 @@ struct thread_struct {
unsigned long esp;
unsigned long fs;
unsigned long gs;
+ unsigned int hypercall_pl;
/* Hardware debugging registers */
unsigned long debugreg[8]; /* %%db0-7 debug registers */
/* fault info */
@@ -368,7 +369,7 @@ struct thread_struct {
unsigned long v86flags, v86mask, saved_esp0;
};
-#define INIT_THREAD { 0 }
+#define INIT_THREAD { 0, 0, 0, 0, 0, 1, {0}, 0, 0, 0, {0}, 0, 0, 0, 0, 0 }
#define INIT_TSS { \
0,0, /* back_link, __blh */ \