summaryrefslogtreecommitdiff
path: root/deva
AgeCommit message (Collapse)Author
2005-04-06deva/neal
2005-04-06 Neal H. Walfield <neal@gnu.org> * mmap.c: Include <hurd/anonymous.h>. (mmap): Call hurd_anonymous_allocate, not hurd_vm_allocate. (munmap): Call hurd_vm_release, not hurd_vm_deallocate. ruth/ 2005-04-06 Neal H. Walfield <neal@gnu.org> * mmap.c: Include <hurd/anonymous.h>. (mmap): Call hurd_anonymous_allocate, not hurd_vm_allocate. (munmap): Call hurd_vm_release, not hurd_vm_deallocate. task/ 2005-04-06 Neal H. Walfield <neal@gnu.org> * mmap.c: Include <hurd/anonymous.h>. (mmap): Call hurd_anonymous_allocate, not hurd_vm_allocate. (munmap): Call hurd_vm_release, not hurd_vm_deallocate.
2005-02-032005-02-03 Marcus Brinkmann <marcus@gnu.org>marcus
* deva.c (setup_threads): Allocate one more thread for all those IRQ handlers. (create_bootstrap_caps): Hand out a serial device cap as bogus master.
2005-02-03Consider this to be the initial check-in ;)marcus
2005-02-032005-02-03 Marcus Brinkmann <marcus@gnu.org>marcus
* device-console.c (console_init): Create the kbd irq handler with a higher priority than normal threads.
2005-02-032005-02-03 Marcus Brinkmann <marcus@gnu.org>marcus
* Makefile.am (deva_SOURCES): Add device-serial.c * device-serial.c: New file. * device.h (struct device): Add new members serial.input_wait and serial.output_wait. * device.c (device_alloc): Enable the DEVICE_SERIAL case.
2005-02-01Fix last change.marcus
2005-02-012005-02-01 Marcus Brinkmann <marcus@gnu.org>marcus
* deva.h (deva_alloc): Renamed to device_alloc. (deva_class_init): Renamed to device_class_init and add new device type argument. (enum device_type): New enum. * deva.c (create_bootstrap_caps): Call device_alloc, not deva_alloc, and pass device type argument. (main): Call device_class_init, not deva_class_init. * deva-class.c: Removed file. * device.h, device.c, device-console.c: New files. * Makefile.am (deva_SOURCES): Remove deva-class.c and add device.h, device.c, device-console.c.
2005-01-11/neal
2005-01-11 Neal H. Walfield <neal@gnu.org> * libhurd-mm: New directory. * Makefile.am (SUBDIRS): Add libhurd-mm. * configure.ac: Add include for libhurd-mm/headers.m4. (AC_CONFIG_FILES): Add libhurd-mm/Makefile. deva/ 2005-01-11 Neal H. Walfield <neal@gnu.org> * Makefile.am (deva_SOURCES): Remove physmem-user.h and physmem-user.c. (deva_LDADD): Add ../libhurd-btree/libhurd-btree.a and ../libhurd-mm/libhurd-mm.a. * ia32-cmain.c: Include <hurd/mm.h>. (pager_tid): New global variable. (cmain): Allocate a thread that the memory management subsystem can use as the pager thread. Call hurd_mm_init. Set the PAGER_TID as the current thread's pager. * mmap.c: Rewrite to use new interfaces. * physmem-user.h: Remove obsolete file. * physmem-user.c: Likewise. libhurd-mm/ 2005-01-11 Neal H. Walfield <neal@gnu.org> * Makefile.am: Initial check in. * README: Likewise. * frame.c: Likewise. * headers.m4: Likewise. * map.c: Likewise. * mm-init.c: Likewise. * mm.h: Likewise. * pager.c: Likewise. * physmem-user.c: Likewise. * physmem-user.h: Likewise. * priv.h: Likewise. * vm.c: Likewise. * vm.h: Likewise. physmem/ 2005-01-11 Neal H. Walfield <neal@gnu.org> * Makefile.am (physmem_SOURCES): Add frame-entry.c and frame.c (physmem_LDADD): Add ../libhurd-btree/libhurd-btree.a. * frame-entry.c: New file. * frame.c: New file. * README: Rewrite. * container.c: Likewise. * physmem.h: Likewise. * physmem.c (create_bootstrap_caps): Change container_t to struct container *. task/ 2005-01-11 Neal H. Walfield <neal@gnu.org> * Makefile.am (task_SOURCES): Remove physmem-user.h and physmem-user.c. (task_LDADD): Add ../libhurd-btree/libhurd-btree.a and ../libhurd-mm/libhurd-mm.a. * ia32-cmain.c: Include <hurd/mm.h>. (pager_tid): New global variable. (cmain): Allocate a thread that the memory management subsystem can use as the pager thread. Call hurd_mm_init. Set the PAGER_TID as the current thread's pager. * mmap.c: Rewrite to use new interfaces. * physmem-user.h: Remove obsolete file. * physmem-user.c: Likewise. wortel/ 2005-01-11 Neal H. Walfield <neal@gnu.org> * startup.c (physmem_map): Rename . . . (allocate): . . . to this. Rewrite it. (map): New function. (cmain): Call map, not physmem_map. * wortel.c (setup_components): Allocate an extra thread for the task server. (start_elf): Update assert.
2005-01-07deva/neal
2005-01-07 Neal H. Walfield <neal@gnu.org> * output.h (debug): Preface __VA_ARGS__ with ## thereby making it optional. laden/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * output.h (debug): Preface __VA_ARGS__ with ## thereby making it optional. physmem/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * output.h (debug): Preface __VA_ARGS__ with ## thereby making it optional. task/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * output.h (debug): Preface __VA_ARGS__ with ## thereby making it optional. wortel/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * output.h (debug): Preface __VA_ARGS__ with ## thereby making it optional.
2004-12-02task/neal
2004-12-01 Neal H. Walfield <neal@gnu.org> * physmem-user.h (physmem_map): Change CONT from a hurd_cap_id_t to a hurd_cap_handle_t. * physmem-user.c (physmem_map): Likewise. deva/ 2004-12-01 Neal H. Walfield <neal@gnu.org> * physmem-user.h (physmem_map): Change CONT from a hurd_cap_id_t to a hurd_cap_handle_t. * physmem-user.c (physmem_map): Likewise. * task-user.h (task_thread_alloc): Change TASK from a hurd_cap_id_t to a hurd_cap_handle_t. * task-user.c (task_thread_alloc): Likewise.
2004-11-222004-11-22 Neal H. Walfield <neal@gnu.org>neal
* deva.c (bootstrap_final): New function. (main): Call bootstrap_final as per the start up protocol to tell wortel that devais up and running and that it should now start the root fs.
2004-11-17deva/neal
2004-11-17 Neal H. Walfield <neal@gnu.org> * Makefile.am (bootdir): New variable. (boot_PROGRAMS): Use this instead of noinst_PROGRAMS. laden/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * Makefile.am (bootdir): New variable. (boot_PROGRAMS): Use this instead of noinst_PROGRAMS. physmem/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * Makefile.am (bootdir): New variable. (boot_PROGRAMS): Use this instead of noinst_PROGRAMS. task/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * Makefile.am (bootdir): New variable. (boot_PROGRAMS): Use this instead of noinst_PROGRAMS. wortel/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * Makefile.am (bootdir): New variable. (boot_PROGRAMS): Use this instead of noinst_PROGRAMS.
2004-11-17deva/neal
2004-11-17 Neal H. Walfield <neal@gnu.org> * output.h (debug): Include program_name and __FUNCTION__ in output. laden/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * output.h (debug): Include program_name and __FUNCTION__ in output. physmem/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * output.h (debug): Include program_name and __FUNCTION__ in output. * physmem.c (create_bootstrap_caps): First argument to debug must be a constant format string. task/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * output.h (debug): Include program_name and __FUNCTION__ in output. wortel/ 2004-11-17 Neal H. Walfield <neal@gnu.org> * output.h (debug): Include program_name and __FUNCTION__ in output.
2004-11-02deva/marcus
2004-11-02 Marcus Brinkmann <marcus@gnu.org> * deva-class.c (SIMPLE_CONSOLE): Define. [SIMPLE_CONSOLE]: A lot of new code that is only used for testing. (deva_io_read): New function. (deva_demuxer): Add handling for deva_io_read. * deva.c (create_bootstrap_caps): Allocate only one object, and copy it out several times. Call wortel_get_deva_cap_reply, not wortel_get_task_cap_reply. wortel/ 2004-11-02 Marcus Brinkmann <marcus@gnu.org> * wortel.c (deva_master): New global variable. (serve_bootstrap_requests): New variable CUR_DEVA. Handle WORTEL_MSG_GET_DEVA_CAP_REQUEST and WORTEL_MSG_GET_DEVA_CAP_REPLY. When replying to deva's bootstrap request, give it all the info we have.
2004-11-022004-11-02 Marcus Brinkmann <marcus@gnu.org>marcus
* Makefile.am (deva_SOURCES): Add task-user.h and task-user.c. * task-user.h, task-user.c: New files. * deva.c: Include "task-user.h". (create_bootstrap_caps): Remove variable startup_cap. (setup_threads): Implement it.
2004-11-01libhurd-cap-server/marcus
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.
2004-10-292004-10-29 Marcus Brinkmann <marcus@gnu.org>marcus
* ia32-cmain.c (switch_thread): Correct start of small sub stack address. Reported by Rian Hunter <hurd@thelaststop.net>.
2004-10-282004-10-28 Marcus Brinkmann <marcus@gnu.org>marcus
* deva: New directory. * configure.ac (AC_CONFIG_FILES): Add deva/Makefile. * Makefile.am (SUBDIRS): Add deva. deva/ 2004-10-28 Marcus Brinkmann <marcus@gnu.org> * Initial check-in. physmem/ 2004-10-28 Marcus Brinkmann <marcus@gnu.org> * physmem.c (get_task_cap): Removed. (bootstrap_final): New function. (main): Call bootstrap_final, not get_task_cap. task/ 2004-10-28 Marcus Brinkmann <marcus@gnu.org> * task.c (bootstrap_final): New function. (main): Call bootstrap_final. wortel/ 2004-10-28 Marcus Brinkmann <marcus@gnu.org> * wortel.h: Include <stdbool.h>. (WORTEL_MSG_GET_TASK_CAP): Renamed into WORTEL_MSG_BOOTSTRAP_FINAL. (WORTEL_MSG_GET_DEVA_CAP_REQUEST, WORTEL_MSG_GET_DEVA_CAP_REPLY): Define new macros. (wortel_get_deva_cap_request, wortel_get_deva_cap_reply, wortel_bootstrap_final): New functions. (wortel_get_task_cap): Removed. * wortel.c (start_elf, start_deva): New functions. (start_task): Bunch of it is now in start_elf. (serve_bootstrap_requests): Handle WORTEL_MSG_BOOTSTRAP_FINAL, not WORTEL_MSG_GET_TASK_CAP. Implement support for starting deva. Implement WORTEL_MSG_GET_DEVA_CAP_REQUEST and WORTEL_MSG_GET_DEVA_CAP_REPLY. * wortel-intern.h (struct wortel_module): New member deva.