summaryrefslogtreecommitdiff
path: root/boot
AgeCommit message (Collapse)Author
2002-02-07Remove these files. Really.Marcus Brinkmann
Reported by Alfred M. Szmidt <ams@kemisten.nu>.
2001-10-07.Roland McGrath
2001-10-072001-10-07 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* boot.c (main): Set the boot script variables based on the KERNEL_COMMAND_LINE value.
2001-08-24.Roland McGrath
2001-08-242001-08-23 Roland McGrath <roland@frob.com>Roland McGrath
* boot.c (kernel_command_line): New variable. (options): Add --kernel-command-line/-K. (parse_opt): Parse it, set kernel_command_line. (main): If unset, default it to "argv[0] bootstrap_args bootdevice". Set ${kernel-command-line} boot script variable to kernel_command_line.
2001-08-17.Roland McGrath
2001-08-172001-08-17 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* 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
2001-08-172001-08-17 Roland McGrath <roland@frob.com>Roland McGrath
* 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-17.Roland McGrath
2001-08-172001-08-17 Roland McGrath <roland@frob.com>Roland McGrath
* boot_script.h: size_t -> unsigned int * boot_script.c: Don't #include <string.h>.
2001-08-17.Roland McGrath
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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: Protect from multiple inclusion. (safe_gets): Remove decl. * boot_script.h (boot_script_exec_cmd): Change TASK arg type to task_t. * userland-boot.c: Likewise.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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-17.Roland McGrath
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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. * boot_script.c (boot_script_parse_line): Take new first argument HOOK. Store it in CMD->hook. (main): Update caller. (boot_script_exec): Pass CMD->hook as 1st arg to boot_script_exec_cmd. (boot_script_exec_cmd): Take new first argument HOOK. * boot.c (boot_script_exec_cmd): Likewise. * boot_script.h (struct cmd): New member `void *hook'. Update decls for HOOK arguments added.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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. * boot_script.c (boot_script_parse_line): Take new first argument HOOK. Store it in CMD->hook. (main): Update caller. (boot_script_exec): Pass CMD->hook as 1st arg to boot_script_exec_cmd. (boot_script_exec_cmd): Take new first argument HOOK. * boot.c (boot_script_exec_cmd): Likewise. * boot_script.h (struct cmd): New member `void *hook'. Update decls for HOOK arguments added.
2001-02-26.Roland McGrath
2001-02-262001-02-25 Roland McGrath <roland@frob.com>Roland McGrath
* Makefile (ourdevice.defs): Loosen up regexp since some whitespace in the file changed.
2001-01-072000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* boot.c (main): If malloc or realloc fails, print diagnostic message and exit. (queue_read): Change return type from void to kern_return_t. If malloc fails, return D_NO_MEMORY, otherwise D_SUCCESS (to simplify code flow, malloc before acquiring the queuelock). (ds_device_read): New variable err (local to the block in which it is used). If queue_read fails, pass through error. (ds_device_read_inband): Likewise. (S_io_read): Likewise. Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>.
2000-03-17.Roland McGrath
2000-03-172000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (S_io_reauthenticate): Check mach_port_insert_right result with assert_perror.
2000-03-172000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (S_io_reauthenticate): Don't use MACH_MSG_TYPE_MAKE_SEND in Hurd RPC.
2000-03-03.Roland McGrath
2000-03-032000-02-28 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (ds_device_get_status): Accept *STATUSLEN greater than needed.
1999-09-13Reverted changes related to io_map_segment.Roland McGrath
1999-09-081999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (S_io_map_segment): New function.
1999-07-11.Roland McGrath
1999-07-111999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (ds_device_read, S_io_read): Fix sloppy bugs in last change.
1999-07-111999-07-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (load_image): Use mmap instead of vm_allocate, when allocating in mach_task_self (). (boot_script_exec_cmd): Likewise. (set_mach_stack_args): Likewise. (read_reply): Likewise. (S_io_read): Likewise.
1999-07-11.Roland McGrath
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c: Add #include <sys/mman.h> for munmap decl.
1999-07-06Mon Jul 5 20:04:06 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (load_image): Fix typo in cast. Reported by Yamashita TAKAO <jargon@lares.dti.ne.jp>.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (load_image): Use munmap instead of vm_deallocate when it's from our own task. (boot_script_read_file): Likewise. (boot_script_exec_cmd): Likewise. (set_mach_stack_args): Likewise. (ds_device_read_inband): Likewise.
1999-03-20.Roland McGrath
1999-03-201999-03-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (S_term_get_peername): New function.
1999-03-15.Roland McGrath
1999-03-151999-03-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c: Fix typo in last change.
1999-03-10.Roland McGrath
1999-03-101999-03-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (main): Only use real device name if root_store is for an enforced single run starting at the beginning of the device.
1999-03-09.Roland McGrath
1999-03-091999-03-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (main): Add newline to error msg. Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1999-02-17.Roland McGrath
1999-02-171999-02-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (S_io_revoke): Add reply, replyPoly args.
1999-02-16Tue Feb 16 05:06:12 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* boot.c (S_io_revoke): New (unsupported) routine.
1998-12-27.Roland McGrath
1998-12-271998-12-26 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot.c (isig): New variable. (init_termstate): If it's set, set ISIG flag in c_lflag. (options): New option -I/--isig. (parse_opt): Make -I set `isig'. (boot_script_exec_cmd): Print out args as well as file name.