[Kos-cvs] [kos] Modification CVS par thomas

KOS CVS kos at kos.enix.org
Sat Dec 20 21:03:57 CET 2003


Module :	kos
Modifié par :	thomas	20/12/03 21:03:57

Fichiers modifiés :
	.              : ChangeLog 
	modules/kos    : system.h wolfgang.c 
	modules/task   : Makefile _task.h _task_init.c _task_team.c 
	                 _task_uthread.c task.h 
	modules/vmm    : _vmm_as.c 
	modules/x86/task: _thread_cpu_context.c task.h 
Fichiers ajoutés :
	modules/task   : _task_ustack.c 

Détails :
2003-12-20  Thomas Petazzoni  <thomas at enix.org>

* modules/x86/task/_thread_cpu_context.c
(init_user_thread_context): Take into account the changes
concerning user-level stack management.

* modules/vmm/_vmm_as.c (as_page_fault): Take into account the
changes concerning user-level stack management.

* modules/task/task.h (struct user_stack_slot): New type to handle
user stack slots, (struct team) Added the user stack slots array,
(struct thread) Added the ID, the address and the size of the
user-level stack.

* modules/task/_task_uthread.c (create_user_thread): Allocate a
user stack, and map it.

* modules/task/_task_ustack.c: New file, with
init_user_stack_slots, alloc_user_stack_slots,
free_user_stack_slots, dump_user_stack_slots functions.

* modules/task/_task_team.c (create_team): Initialize user stack slots.
(task_exec): Do not map anymore the stack, it is done in
create_user_thread.

* modules/task/_task_init.c (init_team_subsystem): Initialize user
stack slots for the kernel team.

* modules/task/task.h: New functions to allocate/free user
stacks.

* modules/task/Makefile (OBJS): New file _task_ustack.o

* modules/kos/wolfgang.c (init_first_user_process): The user stack
of a user thread is now created and mapped inside the
create_user_thread function.

* modules/kos/system.h: New names for USER_* macros.



More information about the Kos-cvs mailing list