Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79850
b: refs/heads/master
c: 859c0a5
h: refs/heads/master
v: v3
  • Loading branch information
Roland McGrath authored and Ingo Molnar committed Jan 30, 2008
1 parent 281443f commit 1348efa
Show file tree
Hide file tree
Showing 2 changed files with 11 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: cadd516422d9382313144aa58f9e46ee7a2c0a28
refs/heads/master: 859c0a5b9ca8eba2d65fa42f02505d76f8a712c7
10 changes: 10 additions & 0 deletions trunk/include/asm-x86/desc_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,16 @@ static inline void load_LDT(mm_context_t *pc)

extern struct desc_ptr idt_descr;

static inline unsigned long get_desc_base(const void *ptr)
{
const u32 *desc = ptr;
unsigned long base;
base = ((desc[0] >> 16) & 0x0000ffff) |
((desc[1] << 16) & 0x00ff0000) |
(desc[1] & 0xff000000);
return base;
}

#endif /* !__ASSEMBLY__ */

#endif

0 comments on commit 1348efa

Please sign in to comment.