aboutsummaryrefslogtreecommitdiff
path: root/boot/boot.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* 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.
* 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.
* 2000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-01-071-5/+31
| | | | | | | | | | | | | * 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 <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-171-1/+6
| | | | | * boot.c (S_io_reauthenticate): Don't use MACH_MSG_TYPE_MAKE_SEND in Hurd RPC.
* 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-131-13/+0
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-081-0/+13
| | | | * boot.c (S_io_map_segment): New function.
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-6/+4
| | | | * boot.c (ds_device_read, S_io_read): Fix sloppy bugs in last change.
* 1999-07-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-11/+13
| | | | | | | | | * 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-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | * boot.c: Add #include <sys/mman.h> for munmap decl.
* Mon Jul 5 20:04:06 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-061-1/+1
| | | | | * boot.c (load_image): Fix typo in cast. Reported by Yamashita TAKAO <jargon@lares.dti.ne.jp>.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-10/+8
| | | | | | | | | * 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 <roland@baalperazim.frob.com>Roland McGrath1999-03-201-0/+7
| | | | * boot.c (S_term_get_peername): New function.
* 1999-03-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-151-2/+2
| | | | * boot.c: Fix typo in last change.
* 1999-03-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-101-1/+3
| | | | | * 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 <roland@baalperazim.frob.com>Roland McGrath1999-03-091-1/+1
| | | | | * boot.c (main): Add newline to error msg. Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
* 1999-02-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-02-171-1/+2
| | | | * boot.c (S_io_revoke): Add reply, replyPoly args.
* Tue Feb 16 05:06:12 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-161-1/+7
| | | | * boot.c (S_io_revoke): New (unsupported) routine.
* 1998-12-26 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-1/+13
| | | | | | | | * 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.
* Mon Jul 7 16:25:49 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-07-091-1/+1
| | | | | * boot.c: Include <fcntl.h> instead of <fcntlbits.h>. Suggested by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu).
* (parse_opt):Miles Bader1997-06-211-111/+227
| | | | | | | | | | | | | | | | | | | | New function. (pseudo_root, root_store): New variables. (bootscript_args): Now an array. (ds_device_open, ds_device_close, ds_device_write, ds_device_write_inband, ds_device_read, ds_device_read_inband, ds_device_get_status, ds_device_set_status, ds_device_map, ds_xxx_device_set_filter, ds_xxx_device_get_status, ds_xxx_device_set_status, ds_device_set_filter): Handle "pseudo-root" device. (main): Use argp to parse args, and implement the pseudo-root device. Include <argp.h> & <hurd/store.h> (options, doc, args_doc): New variables. (bootscript): Made global.
* Thu Apr 10 11:53:57 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-101-12/+6
| | | | | * boot.c: Don't include varargs.h. (set_mach_stack_args): Use stdarg instead of vararg.
* *** empty log message ***Thomas Bushnell1996-08-011-1/+1
|
* (S_io_reauthenticate): Don't use unsafe MOVE_SEND inMichael I. Bushnell1996-07-081-1/+2
| | | | auth_server_authenticate.
* (S_io_identity): Typo.Miles Bader1996-05-101-1/+1
|
* (S_io_identity): New function.Michael I. Bushnell1996-05-101-0/+13
|
* (S_io_select): No longer has TAG parm.Michael I. Bushnell1996-05-091-3/+1
| | | | (S_io_reauthenticate): Use new interface.
* (main): Use select instead of SIGIO.Miles Bader1996-04-291-8/+12
|
* [notanymore]Miles Bader1996-03-271-122/+0
| | | | | | (S_tioctl_tiocgeta, S_tioctl_tiocseta, S_tioctl_tiocsetaf, term_modes, term_ccs, term_speeds): Functions & variables removed.
* [!UX] (orig_tty_state): New variable.Miles Bader1996-02-141-37/+36
| | | | [!UX] (init_termstate, restore_termstate): New hurd versions of these funcs.
* (load_image, boot_script_read_file, main):Miles Bader1996-02-141-6/+6
| | | | | | Use O_RDONLY, not 0 (kind of ironic, this...). (load_image): Give the filename with the error message (and a newline).
* Move all the ux-specific grot into ux.c & ux.h.Miles Bader1996-02-141-258/+39
| | | | | | | | | If UX is defined, include "ux.h", else define hurdish stuff. (main): Use get_privileged_ports instead of task_by_pid. (load_image, boot_script_read_file, main, do_mach_notify_no_senders, do_mach_notify_dead_name): Use host_exit instead of uxexit. (boot_script_read_file): Use host_stat instead of uxstat. (init_termstate, S_tioctl_tiocseta): Use sg_flags field in struct sgttyb.
* (should_read): New variable.Miles Bader1995-12-111-28/+36
| | | | | | | | | | | | | (read_reply): Set SHOULD_READ before attempting lock. Use spin_try_lock() instead of spin_lock(), and abort if we can't get it. Clear SHOULD_READ after getting the lock. (ds_device_read, ds_device_read_inband, S_io_read): Call unlock_readlock instead of directly unlocking READLOCK. Don't block SIGIO. (unlock_readlock): New function. (main): Don't trap SIGMSG & SIGEMSG. (SIGMSG, SIGEMSG): Macros deleted.
* (main): Request no-senders notification on pseudo_master_device_port.Roland McGrath1995-12-051-5/+28
| | | | | | | Deallocate our send right to it when we no longer need it. (ds_device_read_inband): Unlock readlock properly. (do_mach_notify_no_senders): Exit only when both pseudo_console and pseudo_master_device_port have no senders.
* *** empty log message ***Michael I. Bushnell1995-12-051-0/+2
|
* (readlock): New variable.Michael I. Bushnell1995-11-301-4/+20
| | | | | | | | (read_reply): Check FIONREAD before dequeueing QR so that we don't abandon requests. Lock READLOCK around FIONREAD/read pair. (ds_device_read): Lock READLOCK around FIONREAD/read pair. (ds_device_read_inband): Likewise. (S_io_read): Likewise.
* (request_server): Don't call exec_server.Roland McGrath1995-11-221-226/+49
| | | | | | (S_exec_*): Functions removed. (boot_script_task_port): Variable removed. (boot_script_task_*, boot_script_port_*): Functions removed.
* (struct uxstat): New type.Roland McGrath1995-09-271-5/+25
| | | | | | (uxfstat): Renamed from fstat; use struct uxstat * for arg. (boot_script_read_file): Use those. Return the memory object port, not zero.
* (fstat): New syscall function.Roland McGrath1995-09-271-0/+6
|
* (close): New syscall function.Roland McGrath1995-09-271-5/+89
| | | | | | | | | | (defpager): New variable. (main): Set it up. (boot_script_read_file): New function. (useropen_dir): New variable. (useropen): New function. (load_image): Call it instead of open. (main): Grok -D arg to set useropen_dir.
* (main): Use static const for constant strings.Roland McGrath1995-09-231-4/+7
| | | | On boot script error, write script line with error msg.
* (S_io_pathconf): New function.Roland McGrath1995-09-231-0/+9
|
* (sigmask): New macro.Michael I. Bushnell1995-09-221-4/+7
| | | | | | (__mig_dealloc_reply_port): Remove __ from call to mach_port_mod_refs. (main): Check for `d' in BOOTSTRAP_ARGS, not BOOT_ARGS. Don't declar MSG static.
* (sigblock, sigsetmask): New functions.Michael I. Bushnell1995-08-291-0/+27
| | | | | | (ds_device_read): Block SIGIO around critical section. (ds_device_read_inband): Likewise. (S_io_read): Likewise.
* Updated for changes in boot_script.h protocol by Shantanu Goel.Roland McGrath1995-08-281-18/+26
| | | | | (main): Use boot_script_set_variable instead of various magic variables. Under -d, pause between parsing bootscript and executing it.
* (boot_like_kernel, boot_like_cmudef, boot_like_hurd): Variables removed.Roland McGrath1995-08-231-101/+214
| | | | | | | (main): Don't interpret switches. Instead of servers, take command line argument of boot script file name. Read the file and use boot_script functions to parse and execute its directives. (boot_script_*): New variables and functions for boot_script callbacks.
* (free_reply_ports, free_reply_ports_lock): New variables.Miles Bader1995-07-081-6/+46
| | | | | | (__mig_get_reply_port, __mig_put_reply_port, __mig_dealloc_reply_port, mig_get_reply_port, mig_put_reply_port, mig_dealloc_reply_port): Provide better versions of these routines that won't leak reply ports.