Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53753
b: refs/heads/master
c: f9d0964
h: refs/heads/master
i:
  53751: 7c7cb9d
v: v3
  • Loading branch information
Rusty Russell authored and Andi Kleen committed May 2, 2007
1 parent fcf785f commit 7399db3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0b1ff653a0ce88dc9d5cec4e67c9c2be0ba03ef
refs/heads/master: f9d09645d6157fefa18ff75930737060c8092ddb
10 changes: 0 additions & 10 deletions trunk/include/asm-x86_64/desc.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@ static inline void set_ldt_desc(unsigned cpu, void *addr, int size)
DESC_LDT, size * 8 - 1);
}

static inline void set_seg_base(unsigned cpu, int entry, void *base)
{
struct desc_struct *d = &cpu_gdt(cpu)[entry];
u32 addr = (u32)(u64)base;
BUG_ON((u64)base >> 32);
d->base0 = addr & 0xffff;
d->base1 = (addr >> 16) & 0xff;
d->base2 = (addr >> 24) & 0xff;
}

#define LDT_entry_a(info) \
((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff))
/* Don't allow setting of the lm bit. It is useless anyways because
Expand Down

0 comments on commit 7399db3

Please sign in to comment.