aboutsummaryrefslogtreecommitdiff
path: root/boot/userland-boot.c
Commit message (Collapse)AuthorAgeFilesLines
* boot: Port to x64_64Sergey Bugaev2023-05-101-3/+8
| | | | Message-Id: <20230508213136.608575-28-bugaevc@gmail.com>
* boot: Add a verbose option.Justus Winter2017-02-281-2/+13
| | | | | | | | | | | | * boot/boot.c (verbose): New variable. (options): New option. (parse_opt): Handle new option. (ds_device_open): Be verbose if so desired. (task_died): Likewise. (S_mach_notify_new_task): Likewise. * boot/userland-boot.c (boot_script_task_create): Likewise. (boot_script_task_resume): Likewise. * boot/private.h: New file.
* boot: Move bootscript callbacks.Justus Winter2016-11-011-0/+211
| | | | | * boot/boot.c (useropen, load_image, boot_script_exec_cmd): Move... * boot/userland-boot.c: ... here.
* boot: Use the smallest possible name when inserting rights.Justus Winter2016-11-011-3/+12
| | | | | * boot/userland-boot.c (boot_script_insert_right): Use the smallest possible name instead of the local name.
* 2001-08-17 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-171-1/+7
| | | | | | * userland-boot.c (boot_script_task_create): Suspend the newly created task as the protocol requires. (boot_script_insert_right): Fix the error message.
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-3/+10
| | | | | | | | | | | | * userland-boot.c (boot_script_insert_right): Take new result parameter for send right name in target task. (boot_script_insert_task_port): New function. * boot_script.h: Update those two decls. (VAL_TASK): New macro. * boot_script.c (VAL_SYM, VAL_FUNC): Increase these constants. (builtin_symbols): Use VAL_TASK for "task-create". (boot_script_exec): Update caller of boot_script_insert_right. Treat VAL_TASK like VAL_PORT, but call boot_script_insert_task_port.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-0/+13
| | | | | | | | | * userland-boot.c (boot_script_insert_right): New function. * boot_script.h: Declare it. * boot_script.c (boot_script_exec): Use that instead of mach_port_insert_right. * boot_script.h (boot_script_exec_cmd): Change TASK arg type to task_t. * userland-boot.c: Likewise.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-0/+82
* boot_script.h (struct cmd): Change `task' member type to `task_t'. (boot_script_task_create, boot_script_task_resume, boot_script_prompt_task_resume, boot_script_free_task): Declare new functions that callers must define. * userland-boot.c: Define those. * boot_script.c (create_task, resume_task, prompt_resume_task): Use those instead of direct Mach calls. (free_cmd): Likewise. (read_file): Function removed. (builtin_symbols): Remove the "read-file" element. * boot_script.h (boot_script_malloc, boot_script_free): Declare new functions that callers must define. * boot_script.c: All uses of malloc/free changed to use those instead. * userland-boot.c: New file. Defines them using malloc/free. * Makefile (SRCS, OBJS): Add it. * boot.c (boot_script_malloc, boot_script_free): Old cruft functions removed.