Added a private tls.h file with definitions for the reserved TLS slots.
Renamed i386_set_kstack() to i386_set_tss_and_kstack(), because that's what it does. Added a new function arch_thread_init_tls() which must be called after having allocated the TLS area. Renamed arch_thread_initialize_kthread_stack() to arch_thread_init_kthread_stack() to be more consistent. Changed the parameters for arch_thread_enter_uspace() - it now gets a pointer to the thread structure and takes the user stack pointer from there (which might also be architectural different). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2379 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -91,7 +91,7 @@ struct iframe {
|
||||
void setup_system_time(unsigned int cv_factor);
|
||||
void i386_context_switch(struct arch_thread *old_state, struct arch_thread *new_state, addr new_pgdir);
|
||||
void i386_enter_uspace(addr entry, void *args, addr ustack_top);
|
||||
void i386_set_kstack(addr kstack);
|
||||
void i386_set_tss_and_kstack(addr kstack);
|
||||
void i386_switch_stack_and_call(addr stack, void (*func)(void *), void *arg);
|
||||
void i386_swap_pgdir(addr new_pgdir);
|
||||
void i386_fsave(void *fpu_state);
|
||||
|
||||
Reference in New Issue
Block a user