/[pkg-src]/trunk/kernel26-xen/patches-2.6.25-r1/1036-2.6.25-xen-Add-gate_offset-and-gate_segment-macros.patch |
Annotation of /trunk/kernel26-xen/patches-2.6.25-r1/1036-2.6.25-xen-Add-gate_offset-and-gate_segment-macros.patch
Parent Directory | Revision Log
Revision 606 -
(hide annotations)
(download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1187 byte(s)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1187 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 | niro | 606 | From 314390ad75a51bb7bf7201e4bf8b38dbbea7a9ce Mon Sep 17 00:00:00 2001 |
2 | From: Eduardo Habkost <ehabkost@Rawhide-64.localdomain> | ||
3 | Date: Tue, 27 Nov 2007 19:42:54 -0200 | ||
4 | Subject: [PATCH] Add gate_offset() and gate_segment() macros | ||
5 | |||
6 | For calculating the offset from struct gate_struct fields. | ||
7 | |||
8 | Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> | ||
9 | --- | ||
10 | include/asm-x86/desc_defs.h | 4 ++++ | ||
11 | 1 files changed, 4 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/include/asm-x86/desc_defs.h b/include/asm-x86/desc_defs.h | ||
14 | index e33f078..dbf5e19 100644 | ||
15 | --- a/include/asm-x86/desc_defs.h | ||
16 | +++ b/include/asm-x86/desc_defs.h | ||
17 | @@ -73,10 +73,14 @@ struct ldttss_desc64 { | ||
18 | typedef struct gate_struct64 gate_desc; | ||
19 | typedef struct ldttss_desc64 ldt_desc; | ||
20 | typedef struct ldttss_desc64 tss_desc; | ||
21 | +#define gate_offset(g) ((g).offset_low | ((unsigned long)(g).offset_middle << 16) | ((unsigned long)(g).offset_high << 32)) | ||
22 | +#define gate_segment(g) ((g).segment) | ||
23 | #else | ||
24 | typedef struct desc_struct gate_desc; | ||
25 | typedef struct desc_struct ldt_desc; | ||
26 | typedef struct desc_struct tss_desc; | ||
27 | +#define gate_offset(g) get_desc_limit(&(g)) | ||
28 | +#define gate_segment(g) get_desc_base(&(g)) | ||
29 | #endif | ||
30 | |||
31 | struct desc_ptr { | ||
32 | -- | ||
33 | 1.5.4.1 | ||
34 |