aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/thread.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 18:19:47 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 18:19:47 +0100
commit7aafc22a01de5cabb99aed76782f6c0999b7de05 (patch)
tree8f20a49e463a145b0fed2ea3256407b5e6316ba4 /src/kernel/include/thread.h
parentf67c0b7e20ef0816a2d9047fd20346e3ede98b75 (diff)
downloadkogata-7aafc22a01de5cabb99aed76782f6c0999b7de05.tar.gz
kogata-7aafc22a01de5cabb99aed76782f6c0999b7de05.zip
Add stubs for process-related functions.
Diffstat (limited to 'src/kernel/include/thread.h')
-rw-r--r--src/kernel/include/thread.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/include/thread.h b/src/kernel/include/thread.h
index 011067f..74499c6 100644
--- a/src/kernel/include/thread.h
+++ b/src/kernel/include/thread.h
@@ -13,8 +13,6 @@
#define TASK_SWITCH_FREQUENCY 50 // in herz
-typedef void (*user_pf_handler_t)(pagedir_t *pd, registers_t *regs, void* addr);
-
typedef struct saved_context {
uint32_t *esp;
void (*eip)();
@@ -29,8 +27,7 @@ typedef struct thread {
region_info_t *stack_region;
- struct process *proc; // process : L1 data structure
- user_pf_handler_t usermem_pf_handler; // page fault in user memory
+ struct process *proc;
isr_handler_t kmem_violation_handler; // page fault in kernel memory accessed by user code (violation)
struct thread *next_in_queue;
@@ -48,5 +45,6 @@ void pause();
void exit();
void resume_thread(thread_t *thread, bool run_at_once);
+void kill_thread(thread_t *thread);
/* vim: set ts=4 sw=4 tw=0 noet :*/