Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16373
b: refs/heads/master
c: 3fae1c3
h: refs/heads/master
i:
  16371: 46387e4
v: v3
  • Loading branch information
Zachary Amsden authored and Linus Torvalds committed Jan 6, 2006
1 parent bfa792b commit a073e60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 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: 99022c4695d3f45fcf7f3827aa46dd2d9e53e365
refs/heads/master: 3fae1c37eea98097de34ba665796fea93b29f4aa
16 changes: 0 additions & 16 deletions trunk/include/asm-i386/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,6 @@ __asm__ __volatile__ ("movw %%dx,%1\n\t" \
#define set_base(ldt,base) _set_base( ((char *)&(ldt)) , (base) )
#define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1)>>12 )

static inline unsigned long _get_base(char * addr)
{
unsigned long __base;
__asm__("movb %3,%%dh\n\t"
"movb %2,%%dl\n\t"
"shll $16,%%edx\n\t"
"movw %1,%%dx"
:"=&d" (__base)
:"m" (*((addr)+2)),
"m" (*((addr)+4)),
"m" (*((addr)+7)));
return __base;
}

#define get_base(ldt) _get_base( ((char *)&(ldt)) )

/*
* Load a segment. Fall back on loading the zero
* segment if something goes wrong..
Expand Down

0 comments on commit a073e60

Please sign in to comment.