Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79865
b: refs/heads/master
c: 2608a65
h: refs/heads/master
i:
  79863: c43e0ae
v: v3
  • Loading branch information
Roland McGrath authored and Ingo Molnar committed Jan 30, 2008
1 parent bb7d308 commit aed5f7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb7fa8f1741c91f6c6e958762155abe9339476ca
refs/heads/master: 2608a6584a0a32d3251dfafad31d9f8b2c784466
11 changes: 11 additions & 0 deletions trunk/include/asm-x86/segment_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@
#define GDT_SIZE (GDT_ENTRIES * 8)
#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8)

/* Bottom two bits of selector give the ring privilege level */
#define SEGMENT_RPL_MASK 0x3
/* Bit 2 is table indicator (LDT/GDT) */
#define SEGMENT_TI_MASK 0x4

/* User mode is privilege level 3 */
#define USER_RPL 0x3
/* LDT segment has TI set, GDT has it cleared */
#define SEGMENT_LDT 0x4
#define SEGMENT_GDT 0x0

#endif

0 comments on commit aed5f7c

Please sign in to comment.