diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-05 20:34:47 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-05 20:43:59 +0200 |
commit | 5b0abe6834fe3ab57dec2de7277452f2ebed4b76 (patch) | |
tree | dff89a6daaa5569431c0e1b6cee34dcb04fe153b /arch/x86/machine/tcb.c | |
parent | e217d5566ac8c5ffef9924a56a8d3e4cae9d47f5 (diff) |
x86/{pmap,tcb}: don't use tsd for the update oplist
Diffstat (limited to 'arch/x86/machine/tcb.c')
-rw-r--r-- | arch/x86/machine/tcb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/machine/tcb.c b/arch/x86/machine/tcb.c index b54945c..6978811 100644 --- a/arch/x86/machine/tcb.c +++ b/arch/x86/machine/tcb.c @@ -74,11 +74,11 @@ tcb_stack_forge(struct tcb *tcb, void (*fn)(void *), void *arg) #endif /* __LP64__ */ int -tcb_init(struct tcb *tcb, void *stack, void (*fn)(void *), void *arg) +tcb_build(struct tcb *tcb, void *stack, void (*fn)(void *), void *arg) { int error; - error = pmap_thread_init(thread_from_tcb(tcb)); + error = pmap_thread_build(thread_from_tcb(tcb)); if (error) { return error; @@ -90,6 +90,12 @@ tcb_init(struct tcb *tcb, void *stack, void (*fn)(void *), void *arg) return 0; } +void +tcb_cleanup(struct tcb *tcb) +{ + pmap_thread_cleanup(thread_from_tcb(tcb)); +} + void __init tcb_load(struct tcb *tcb) { |