Age | Commit message (Collapse) | Author |
|
* libhurd-cap: Remove.
* libhurd-cap-server: Likewise.
* physmem: Likewise.
* task: Likewise.
|
|
* Makefile.am (task_SOURCES): Add thread.c.
* thread.c: New file.
* task.h (struct thread): New structure.
(thread_t): New typedef.
(thread_set_range, thread_alloc_with_id, thread_alloc,
thread_dealloc): New prototype.
(struct task): Change type of member TASK_ID to hurd_task_id_t.
Change type of member THREADS to thread_t.
* task-class.c (task_reinit): Walk what is now the list of
threads.
(task_thread_alloc): Implement.
(task_demuxer): Change msg ID of task_thread_alloc RPC (256 was
taken by the cap-server implementation).
(task_alloc): Create the list of threads.
* task.c: Remove superflusous newlines from panic messages.
(first_free_thread_no): Move global variable to ...
(setup_threads): ... here (as local). Call thread_set_range.
|
|
2004-11-01 Marcus Brinkmann <marcus@gnu.org>
* cap-server.h (hurd_cap_class_create): Rename to ...
(hurd_cap_class_create_untyped): ... this.
(hurd_cap_class_create): New macro.
(hurd_cap_class_init): Rename to ...
(hurd_cap_class_init_untyped): ... this.
(hurd_cap_class_init): New macro.
(hurd_cap_get_obj_size): New inline function.
(hurd_cap_obj_to_user_untyped, hurd_cap_obj_from_user_untyped):
New inline function.
(hurd_cap_obj_to_user, hurd_cap_obj_from_user): New macro.
* class-alloc.c (hurd_cap_class_alloc): New variable NEW_OBJ, use
it as a temporary placeholder.
* class-create.c (hurd_cap_class_create): Rename to ...
(hurd_cap_class_create_untyped): ... this.
Use hurd_cap_class_init_untyped.
* class-init.c (hurd_cap_class_init): Rename to ...
(hurd_cap_class_init_untyped): ... this.
Add the size of struct hurd_cap_obj to SIZE.
* client-create.c (_hurd_cap_client_alloc): New variable
NEW_CLIENT, use it as a temporary placeholder.
* obj-copy-out.c (_hurd_cap_obj_copy_out): New variable NEW_ENTRY,
use it as a temporary placeholder.
physmem/
2004-11-01 Marcus Brinkmann <marcus@gnu.org>
* container.c (struct container, container_t): Remove member OBJ.
Move struct and typedef to ...
* physmem.h (struct container, container_t): ... here.
(container_alloc): Change type of last argument in prototype to a
pointer to a container_t.
* container.c (container_reinit, container_map): Use
hurd_cap_obj_to_user instead cast.
(container_class_init): Provide type instead size and alignment.
(container_alloc): Add new variable OBJ and use hurd_cap_obj_to_user.
Change type of last argument to a pointer to container_t.
* physmem.c (create_bootstrap_caps): New variable CONTAINER.
Use hurd_cap_obj_from_user to get at the object.
task/
2004-11-01 Marcus Brinkmann <marcus@gnu.org>
* task.h (struct task): Remove member OBJ.
(task_alloc): Change type of last argument to pointer to task_t.
(task_id_get_task): Use hurd_cap_obj_from_user.
* task.c (create_bootstrap_caps): Remove variable STARTUP_CAP.
Add variable TASK. Use hurd_cap_obj_to_user.
* task-class.c (task_reinit): Use hurd_cap_obj_to_user instead of
cast.
(task_class_init): Use type instead size and alignment.
(task_alloc): Change type of last argument to pointer to task_t.
Add new variable OBJ and use it as a temporary placeholder.
deva/
2004-11-01 Marcus Brinkmann <marcus@gnu.org>
* deva-class.c (struct deva): Remove member obj (and add dummy
member foo).
(deva_reinit): Use hurd_cap_obj_to_user instead of cast.
(deva_class_init): Replace size and alignment with type.
(deva_alloc): New variable OBJ. Use it with hurd_cap_class_alloc.
Use hurd_cap_obj_to_user to get at the deva object.
|
|
* Makefile.am (task_SOURCES): Add task-id.c.
* task.h (task_id_to_task_lock, task_id_to_task): New declarations.
(task_id_get_task): New static inline function.
(task_id_enter, task_id_add): New prototypes.
* task.c (create_bootstrap_caps): Enter the new tasks into the
hash table with task_id_enter.
* task-id.c: New file.
|
|
* Makefile.am (task_SOURCES): Add physmem-user.h, physmem-user.c,
malloc-wrap.c, mmap.c and task-class.c.
(EXTRA_task_SOURCES): New target.
* physmem-user.h, physmem-user.h, malloc.c, malloc-wrap.c, mmap.c,
task-class.c: New files.
* task.h (task_class_init, task_alloc): Add prototypes.
* task.c: Include <hurd/startup.h> and <hurd/wortel.h>
(__hurd_startup_data): New declaration.
(create_bootstrap_caps, get_task_id, setup_threads, task_server):
New functions.
(first_free_thread_no): New global variable.
(main): Call setup_threads and initialize server_thread. Call
task_class_init. Create task bucket. Create manager thread and
start it.
|