diff options
author | Richard Braun <rbraun@sceen.net> | 2012-11-09 21:35:49 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-11-09 21:40:52 +0100 |
commit | 79b5932c4eea229fca427bc93ba491ffecef10f5 (patch) | |
tree | bf1165e7fa7c2f6232fd8c1e8b6c148b329b42f7 /arch/x86/machine/trap.h | |
parent | c8ba9280fafe518ada8a6d2a545d6afa2b2dbe23 (diff) |
Implement preliminary thread context
Three new modules are added :
- kern/task: Tasks are thread groups and resource containers for their
threads.
- kern/thread: The well known scheduling unit.
- x86/tcb: The architecture specific thread control block.
The kernel currently loads a single thread context on the main processor.
Diffstat (limited to 'arch/x86/machine/trap.h')
-rw-r--r-- | arch/x86/machine/trap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/machine/trap.h b/arch/x86/machine/trap.h index f25c5893..06275c4a 100644 --- a/arch/x86/machine/trap.h +++ b/arch/x86/machine/trap.h @@ -126,6 +126,13 @@ void trap_main(struct trap_frame *frame); */ void trap_frame_show(struct trap_frame *frame); +/* + * Load a context saved in a trap frame. + * + * The caller context is lost. + */ +void __noreturn trap_load(struct trap_frame *frame); + #endif /* __ASSEMBLER__ */ #endif /* _X86_TRAP_H */ |