Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 6 of 6) sorted by relevance

/sys/amd64/
Dtrap.c23 extern void trap_pop(TrapFrame *tf);
24 extern void Debug_Breakpoint(TrapFrame *tf);
25 extern void Debug_HaltIPI(TrapFrame *tf);
95 Trap_Dump(TrapFrame *tf) in Trap_Dump() argument
99 tf->vector, tf->errcode); in Trap_Dump()
109 tf->cs, tf->rip, tf->ss, tf->rsp); in Trap_Dump()
111 tf->rflags, read_ds(), read_es(), read_fs(), read_gs()); in Trap_Dump()
113 tf->rax, tf->rbx, tf->rcx); in Trap_Dump()
115 tf->rdx, tf->rsi, tf->rdi); in Trap_Dump()
117 tf->rbp, tf->r8, tf->r9); in Trap_Dump()
[all …]
Dthread.c16 extern void ThreadKThreadEntry(TrapFrame *tf);
32 TrapFrame *tf; in Thread_SetupKThread() local
34 tf = (TrapFrame *)(stacktop - sizeof(*tf)); in Thread_SetupKThread()
35 sf = (ThreadArchStackFrame *)(stacktop - sizeof(*tf) - sizeof(*sf)); in Thread_SetupKThread()
38 memset(tf, 0, sizeof(*tf)); in Thread_SetupKThread()
44 sf->rdi = (uint64_t)tf; in Thread_SetupKThread()
46 tf->ds = 0; in Thread_SetupKThread()
47 tf->ss = 0; //SEL_KDS; in Thread_SetupKThread()
48 tf->rsp = stacktop; in Thread_SetupKThread()
49 tf->cs = SEL_KCS; in Thread_SetupKThread()
[all …]
Ddebug.c51 Debug_HaltIPI(TrapFrame *tf) in Debug_HaltIPI() argument
56 frames[CPU()] = tf; in Debug_HaltIPI()
67 Debug_Breakpoint(TrapFrame *tf) in Debug_Breakpoint() argument
69 frames[CPU()] = tf; in Debug_Breakpoint()
90 TrapFrame *tf = frames[CPU()]; in Debug_Registers() local
98 tf = frames[cpuNo]; in Debug_Registers()
102 tf->vector, tf->errcode); in Debug_Registers()
112 tf->cs, tf->rip, tf->ss, tf->rsp); in Debug_Registers()
114 tf->rflags, read_ds(), read_es(), read_fs(), read_gs()); in Debug_Registers()
116 tf->rax, tf->rbx, tf->rcx); in Debug_Registers()
[all …]
/sys/kern/
Dloader.c244 TrapFrame tf; in Loader_LoadInit() local
245 memset(&tf, 0, sizeof(tf)); in Loader_LoadInit()
246 tf.ds = SEL_UDS | 3; in Loader_LoadInit()
247 tf.rip = thr->proc->entrypoint; in Loader_LoadInit()
248 tf.cs = SEL_UCS | 3; in Loader_LoadInit()
249 tf.rsp = rsp; in Loader_LoadInit()
250 tf.ss = SEL_UDS | 3; in Loader_LoadInit()
251 tf.rflags = RFLAGS_IF; in Loader_LoadInit()
252 tf.rdi = rsp; in Loader_LoadInit()
253 Trap_Pop(&tf); in Loader_LoadInit()
Dthread.c314 ThreadKThreadEntry(TrapFrame *tf) __NO_LOCK_ANALYSIS in ThreadKThreadEntry() argument
320 Trap_Pop(tf); in ThreadKThreadEntry()
/sys/amd64/include/
Dtrap.h87 void Trap_Dump(TrapFrame *tf);
88 void Trap_Pop(TrapFrame *tf);