Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/x86/um/asm/processor_64.h
26493 views
1
/*
2
* Copyright 2003 PathScale, Inc.
3
*
4
* Licensed under the GPL
5
*/
6
7
#ifndef __UM_PROCESSOR_X86_64_H
8
#define __UM_PROCESSOR_X86_64_H
9
10
struct arch_thread {
11
unsigned long debugregs[8];
12
int debugregs_seq;
13
struct faultinfo faultinfo;
14
};
15
16
#define INIT_ARCH_THREAD { .debugregs = { [ 0 ... 7 ] = 0 }, \
17
.debugregs_seq = 0, \
18
.faultinfo = { 0, 0, 0 } }
19
20
#define STACKSLOTS_PER_LINE 4
21
22
static inline void arch_flush_thread(struct arch_thread *thread)
23
{
24
}
25
26
static inline void arch_copy_thread(struct arch_thread *from,
27
struct arch_thread *to)
28
{
29
}
30
31
#define current_sp() ({ void *sp; __asm__("movq %%rsp, %0" : "=r" (sp) : ); sp; })
32
#define current_bp() ({ unsigned long bp; __asm__("movq %%rbp, %0" : "=r" (bp) : ); bp; })
33
34
#endif
35
36