Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2899
b: refs/heads/master
c: f501231
h: refs/heads/master
i:
  2897: d8f7681
  2895: 6f96a27
v: v3
  • Loading branch information
Vincent Hanquez authored and Linus Torvalds committed Jun 23, 2005
1 parent 23ecd86 commit 68b8fba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: 701067c4661ebcdc155cc8f696acb24c016c058b
refs/heads/master: f5012310e35bd62fd39fce338ee44422c975ff3c
14 changes: 9 additions & 5 deletions trunk/include/asm-i386/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,16 @@ static inline void load_esp0(struct tss_struct *tss, struct thread_struct *threa
} while (0)

/*
* This special macro can be used to load a debugging register
* These special macros can be used to get or set a debugging register
*/
#define loaddebug(thread,register) \
__asm__("movl %0,%%db" #register \
: /* no output */ \
:"r" ((thread)->debugreg[register]))
#define get_debugreg(var, register) \
__asm__("movl %%db" #register ", %0" \
:"=r" (var))
#define set_debugreg(value, register) \
__asm__("movl %0,%%db" #register \
: /* no output */ \
:"r" (value))


/* Forward declaration, a strange C thing */
struct task_struct;
Expand Down

0 comments on commit 68b8fba

Please sign in to comment.