aboutsummaryrefslogtreecommitdiff
path: root/boot
Commit message (Collapse)AuthorAgeFilesLines
* fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Add \n to boot error messageSamuel Thibault2010-10-181-0/+1
| | | | * boot/boot.c (main): Print \n after printing boot_script_error_string().
* Add device virtualisation support to bootZheng Da2010-09-201-0/+56
| | | | | | | | | | | * boot/boot.c: Add '-f' option. (dev_map): New structure. (dev_map_head): New variable. (add_dev_map): New function. (lookup_dev): New function. (parse_opt): Handle the '-f' option: call 'add_dev_map'. (ds_device_open): Try to call 'lookup_dev', and open the device from the device file if it succeeds.
* Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-893/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
* 2006-03-15 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2006-03-142-5/+16
| | | | * boot.c (boot_script_exec_cmd): Fix invalid lvalues.
* .Roland McGrath2003-01-041-0/+7
|
* 2003-01-04 Roland McGrath <roland@frob.com>Roland McGrath2003-01-041-9/+9
| | | | | | | * boot_script.c (boot_script_parse_line): Copy the file name into malloc'd storage. (add_arg): New arg TEXTLEN. Store malloc'd copy of TEXT. (boot_script_parse_line): Update callers.
* .Roland McGrath2002-06-131-0/+5
|
* 2002-06-13 Roland McGrath <roland@frob.com>Roland McGrath2002-06-131-8/+14
| | | | | * boot.c (ds_device_write): int -> size_t in store_write call. (ds_device_write_inband): Likewise.
* .Roland McGrath2002-06-111-0/+4
|
* 2002-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-111-1/+1
| | | | * boot.c (S_io_identity): Use ino_t for FILENO.
* .Roland McGrath2002-06-011-0/+7
|
* 2002-05-31 Roland McGrath <roland@frob.com>Roland McGrath2002-06-011-3/+2
| | | | | | * boot.c: Don't include "exec_S.h". * boot.c (boot_script_exec_cmd): Fix typos: {I386,ALPHA}_THREAD_STATE -> {i386,ALPHA}_THREAD_STATE_COUNT
* .Roland McGrath2002-05-291-0/+27
|
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-292-14/+18
| | | | | | | | | | | * boot_script.c (boot_script_set_variable): Values int -> integer_t. (boot_script_define_function): Likewise. (boot_script_parse_line): Likewise. (struct sym, struct arg): Likewise. (boot_script_exec): Likewise. (builtin_symbols): Likewise. * boot.c (main): Likewise. * boot_script.h: Update decls.
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-214/+51
| | | | | | | | | | | | | | | | | | | | | | | | | * boot_script.c (boot_script_set_variable): Values int -> integer_t. (boot_script_define_function): Likewise. (boot_script_parse_line): Likewise. (struct sym, struct arg): Likewise. (boot_script_exec): Likewise. (builtin_symbols): Likewise. * boot.c (main): Likewise. * boot_script.h: Update decls. * boot.c (boot_script_exec_cmd) [I386_THREAD_STATE]: Conditionalize i386 thread setup code on this. [ALPHA_THREAD_STATE]: Add Alpha thread setup code. (set_mach_stack_args): Obsolete function removed. * boot.c (load_image): u_int -> vm_address_t (ds_xxx_device_get_status, ds_xxx_device_set_status): u_int -> size_t (S_io_restrict_auth, S_io_reauthenticate): Likewise. (ds_device_write, ds_device_read_inband): Likewise. (ds_device_get_status): Likewise. (ds_device_set_status): Likewise. (boot_script_exec_cmd): Likewise. (ds_device_read, ds_device_write_inband): Likewise. (ds_xxx_device_set_filter): Likewise. (ds_device_set_filter): Likewise.
* 2002-05-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-05-132-0/+8
| | | | | * boot.c: Include <version.h> (argp_program_version): New variable.
* 2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield2002-03-261-0/+4
| | | | * main.c (main): Use error, not fprintf and exit.
* 2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield2002-03-261-6/+3
| | | | * boot.c (main): Use error, not perror and exit.
* Remove these files. Really.Marcus Brinkmann2002-02-071-592/+0
| | | | Reported by Alfred M. Szmidt <ams@kemisten.nu>.
* .Roland McGrath2001-10-071-0/+5
|
* 2001-10-07 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-10-071-0/+27
| | | | | * boot.c (main): Set the boot script variables based on the KERNEL_COMMAND_LINE value.
* .Roland McGrath2001-08-241-0/+8
|
* 2001-08-23 Roland McGrath <roland@frob.com>Roland McGrath2001-08-241-1/+12
| | | | | | | | * 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.
* .Roland McGrath2001-08-171-0/+7
|
* 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.
* .Roland McGrath2001-08-171-0/+10
|
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-173-11/+31
| | | | | | | | | | | | * 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.
* .Roland McGrath2001-08-171-0/+5
|
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-172-3/+2
| | | | | * boot_script.h: size_t -> unsigned int * boot_script.c: Don't #include <string.h>.
* .Roland McGrath2001-08-171-0/+11
|
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-3/+7
| | | | | | | | | | | * 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-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-15/+5
| | | | | | | * 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-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.
* .Roland McGrath2001-08-171-0/+30
|
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-14/+3
| | | | | | | | | | | | | | | | | | * 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-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-2/+3
| | | | | | | | | | * 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-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.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-172-76/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* .Roland McGrath2001-02-261-2/+7
|
* 2001-02-25 Roland McGrath <roland@frob.com>Roland McGrath2001-02-261-2/+2
| | | | | * Makefile (ourdevice.defs): Loosen up regexp since some whitespace in the file changed.
* 2000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-01-072-5/+44
| | | | | | | | | | | | | * 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>.
* .Roland McGrath2000-03-171-0/+5
|
* 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-171-3/+5
| | | | | * boot.c (S_io_reauthenticate): Check mach_port_insert_right result with assert_perror.
* 2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell2000-03-172-1/+11
| | | | | * boot.c (S_io_reauthenticate): Don't use MACH_MSG_TYPE_MAKE_SEND in Hurd RPC.
* .Roland McGrath2000-03-031-0/+4
|
* 2000-02-28 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-031-2/+3
| | | | * boot.c (ds_device_get_status): Accept *STATUSLEN greater than needed.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-132-13/+4
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-082-0/+17
| | | | * boot.c (S_io_map_segment): New function.
* .Roland McGrath1999-07-111-2/+6
|