Subversion Repositories HelenOS

Rev

Rev 2089 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2606
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_amd64_THREAD_H_
35
#ifndef KERN_amd64_THREAD_H_
36
#define KERN_amd64_THREAD_H_
36
#define KERN_amd64_THREAD_H_
37
 
37
 
-
 
38
/* CAUTION: keep these in sync with low level assembly code in syscall_entry */
-
 
39
#define SYSCALL_USTACK_RSP  0
-
 
40
#define SYSCALL_KSTACK_RSP  1
-
 
41
 
38
typedef struct {
42
typedef struct {
39
    unative_t tls;
43
    unative_t tls;
-
 
44
    /** User and kernel RSP for syscalls. */
-
 
45
    uint64_t syscall_rsp[2];   
40
} thread_arch_t;
46
} thread_arch_t;
41
 
47
 
42
#define thr_constructor_arch(t)
48
#define thr_constructor_arch(t)
43
#define thr_destructor_arch(t)
49
#define thr_destructor_arch(t)
44
 
50