Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1117-2.6.25-xen-SEGBASE_-defines.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (show annotations) (download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1075 byte(s)
-ver bump to 2.6.25-magellan-r1:
- linux-2.6.25.4
- fbcondecor-0.9.4
- squashfs-3.3
- unionfs-2.3.3
- tuxonice-3.0-rc7
- linux-phc-0.3.0
- acpi-dstd-0.9a
- reiser4
- xen-3.2.0
. ipw3945-1.2.2

1 From 359c3142f6f537a85144ad1870e4a96be3da2c00 Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Wed, 23 Jan 2008 15:36:24 -0200
4 Subject: [PATCH] Xen: SEGBASE_* defines
5
6 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7 ---
8 include/asm-x86/xen/interface.h | 11 +++++++++++
9 1 files changed, 11 insertions(+), 0 deletions(-)
10
11 diff --git a/include/asm-x86/xen/interface.h b/include/asm-x86/xen/interface.h
12 index ab69adb..cb77b3f 100644
13 --- a/include/asm-x86/xen/interface.h
14 +++ b/include/asm-x86/xen/interface.h
15 @@ -96,6 +96,17 @@ DEFINE_GUEST_HANDLE(void);
16 #ifndef __ASSEMBLY__
17
18 /*
19 + * int HYPERVISOR_set_segment_base(unsigned int which, unsigned long base)
20 + * @which == SEGBASE_* ; @base == 64-bit base address
21 + * Returns 0 on success.
22 + */
23 +#define SEGBASE_FS 0
24 +#define SEGBASE_GS_USER 1
25 +#define SEGBASE_GS_KERNEL 2
26 +#define SEGBASE_GS_USER_SEL 3 /* Set user %gs specified in base[15:0] */
27 +
28 +
29 +/*
30 * Send an array of these to HYPERVISOR_set_trap_table()
31 */
32 #define TI_GET_DPL(_ti) ((_ti)->flags & 3)
33 --
34 1.5.4.1
35