Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/riscv/trap.c
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
svc_handler(struct trapframe *frame) | svc_handler(struct trapframe *frame) | ||||
{ | { | ||||
struct thread *td; | struct thread *td; | ||||
td = curthread; | td = curthread; | ||||
td->td_frame = frame; | |||||
KASSERT(td->td_frame == frame, | |||||
("%s: td_frame %p != frame %p", __func__, td->td_frame, frame)); | |||||
syscallenter(td); | syscallenter(td); | ||||
syscallret(td); | syscallret(td); | ||||
} | } | ||||
static void | static void | ||||
data_abort(struct trapframe *frame, int usermode) | data_abort(struct trapframe *frame, int usermode) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |