2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
7 #ifndef __UM_PROCESSOR_X86_64_H
8 #define __UM_PROCESSOR_X86_64_H
11 unsigned long debugregs
[8];
14 struct faultinfo faultinfo
;
17 #define INIT_ARCH_THREAD { .debugregs = { [ 0 ... 7 ] = 0 }, \
20 .faultinfo = { 0, 0, 0 } }
22 #define STACKSLOTS_PER_LINE 4
24 static inline void arch_flush_thread(struct arch_thread
*thread
)
28 static inline void arch_copy_thread(struct arch_thread
*from
,
29 struct arch_thread
*to
)
34 #define current_text_addr() \
35 ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })
37 #define current_sp() ({ void *sp; __asm__("movq %%rsp, %0" : "=r" (sp) : ); sp; })
38 #define current_bp() ({ unsigned long bp; __asm__("movq %%rbp, %0" : "=r" (bp) : ); bp; })