PERFORCE change 113253 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun Jan 21 14:45:24 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=113253
Change 113253 by rdivacky at rdivacky_witten on 2007/01/21 14:45:12
user_desc structure is differnt on amd64 running in i386 mode.
Sync that.
Affected files ...
.. //depot/projects/linuxolator/src/sys/amd64/linux32/linux.h#14 edit
Differences ...
==== //depot/projects/linuxolator/src/sys/amd64/linux32/linux.h#14 (text+ko) ====
@@ -768,6 +768,7 @@
l_uint limit_in_pages:1;
l_uint seg_not_present:1;
l_uint useable:1;
+ l_uint lm:1;
};
struct l_desc_struct {
@@ -791,6 +792,7 @@
#define ENTRY_B_USEABLE 20
#define ENTRY_B_SEG32BIT 22
#define ENTRY_B_LIMIT 23
+#define ENTRY_B_LONGMODE 21
#define LDT_entry_b(info) \
(((info)->base_addr & 0xff000000) | \
@@ -811,7 +813,8 @@
(info)->read_exec_only == 1 && \
(info)->seg_32bit == 0 && \
(info)->limit_in_pages == 0 && \
- (info)->useable == 0 )
+ (info)->useable == 0 && \
+ (info)->lm == 0)
/* macros for converting segments, they do the same as those in arch/i386/kernel/process.c */
#define GET_BASE(desc) ( \
@@ -829,6 +832,7 @@
#define GET_LIMIT_PAGES(desc) (((desc)->b >> ENTRY_B_LIMIT) & 1)
#define GET_PRESENT(desc) (((desc)->b >> ENTRY_B_SEG_NOT_PRESENT) & 1)
#define GET_USEABLE(desc) (((desc)->b >> ENTRY_B_USEABLE) & 1)
+#define GET_LONGMODE(desc) (((desc)->b >> ENTRY_B_LONGMODE) & 1)
#define LINUX_CLOCK_REALTIME 0
#define LINUX_CLOCK_MONOTONIC 1
More information about the p4-projects
mailing list