aboutsummaryrefslogtreecommitdiff
path: root/serverboot/bootstrap.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove `serverboot'; fix "make dist" in `mach-defpager'.Ludovic Courtès2011-04-031-438/+0
| | | | | | | | | | | | | | | | | | | | | | | | * serverboot/default_pager.c, serverboot/kalloc.c, serverboot/queue.h, serverboot/wiring.c, serverboot/wiring.h: Move to `mach-defpager/'. * serverboot/Makefile, serverboot/assert.h, serverboot/bootstrap.c, serverboot/bunzip2.c, serverboot/def_pager_setup.c, serverboot/defs.h, serverboot/dir.h, serverboot/disk_inode.h, serverboot/disk_inode_ffs.h, serverboot/elf-load.c, serverboot/exec.c, serverboot/ext2_file_io.c, serverboot/ffs_compat.c, serverboot/ffs_compat.h, serverboot/ffs_file_io.c, serverboot/file_io.c, serverboot/file_io.h, serverboot/fs.h, serverboot/gets.c, serverboot/gunzip.c, serverboot/load.c, serverboot/mach-exec.h, serverboot/minix_ffs_compat.c, serverboot/minix_ffs_compat.h, serverboot/minix_file_io.c, serverboot/minix_fs.h, serverboot/minix_super.h, serverboot/panic.c, serverboot/strfcns.c: Remove. * mach-defpager/Makefile (LCLHDRS): New variable. (vpath): Remove. (CPPFLAGS): Remove `-I$(srcdir)/../serverboot'. * mach-defpager/setup.c (page_aligned): Make public.
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-06-021-7/+7
| | | | * bootstrap.c (main): int -> integer_t for boot_script values.
* 2002-03-23 Roland McGrath <roland@frob.com>Roland McGrath2002-03-241-57/+10
| | | | | | | | | | | | | | | | | | | | | Excised default pager functionality from serverboot. * Makefile (SRCS): Move def_pager_setup.c default_pager.c kalloc.c to (EXTRA_DIST): ... here. (OBJS): Remove *Server.o from here. (MIGSFLAGS): Variable removed. * bootstrap.c (main): Replace paging-file boot-script functions with a stub that prints an error. No longer call partition_init, default_pager_initialize, or default_pager. (default_pager_bootstrap_port): Variable removed. (main): Don't use it. (default_pager_exception_port): Declaration removed. (main): Don't use it. * default_pager.c (default_pager_bootstrap_port): Variable removed. (default_pager_demux_default): Don't use it. (default_pager_initialize): Likewise. (default_pager): Likewise. (do_bootstrap_privileged_ports, bootstrap_compat): Functions removed. [mips] (set_ras_address): Likewise.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-1/+1
| | | | | | | * Makefile (OBJS): Add userland-boot.o here. Add a vpath to find userland-boot.c in boot/ too. * bootstrap.c (parse_script): Pass new arg to boot_script_parse_line. * load.c: Include <stddef.h> before "boot_script.h".
* 1999-11-08 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-081-12/+35
| | | | | * bootstrap.c (main): Further spruce up prompting and error reporting for root device and boot script.
* 1999-10-28 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-281-2/+0
| | | | | | | * load.c, bootstrap.c: Back out some debugging printfs accidentally included in the last commit. * bootstrap.c (main): Increase size of NEW_ROOT buffer. This change was included in the last commit, but not logged then.
* 1999-10-28 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-281-11/+24
| | | | | | | | | | | * file_io.h: Include <errno.h>. (FS_* macros): Define these to equivalent errno codes. * def_pager_setup.c (add_paging_file): Put strerror of result code in error messages. * bootstrap.c (parse_script): Likewise. * load.c (boot_script_exec_cmd): Include NAMEBUF in error messages, and use strerror to format result code. * panic.c (panic): Use program_invocation_name in message.
* 1999-10-08 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-10-081-3/+3
| | | | | | | * bootstrap.c: (DEFAULT_ROOT): Remove macro. (main): If no root device was specified, then prompt as if the user had specified -a. Don't use strcpy to move NEW_ROOT into ROOT_NAME; that's unsafe.
* 1999-10-08 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-10-081-10/+3
| | | | | | * bootstrap.c: (DEFAULT_ROOT): Remove macro. (main): If no root device was specified, then prompt as if the user had specified -a.
* 1999-10-06 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-061-1/+1
| | | | * bootstrap.c (DEFAULT_ROOT): Change to "hd0s1".
* 1999-08-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-08-201-3/+2
| | | | | * bootstrap.c (parse_script): Add one to the buffer size so we can null-terminate after the end of the file.
* 1999-06-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-021-0/+9
| | | | | * bootstrap.c (main): If we have a MULTIBOOT_CMDLINE environment variable, set its value as ${kernel-command-line} for boot scripts.
* 1999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-301-0/+20
| | | | | | * bootstrap.c (main): Define $(serverboot) function for "serverboot controls", control command replacing the pathname. For command "die", terminate ourselves after running the boot script, no default pager.
* 1999-05-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-151-21/+0
| | | | | | | | * bootstrap.c (main): Remove vars HAD_A_PARITION, DOING_DEFAULT_PAGER. Remove $(default-pager) boot script tag. We always stick around and act as the default pager (this was already the case, just removed some dead code). Don't print anything about having no swap partitions, since that is a fine way to boot (just use swapon later).
* 1999-03-06 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-061-1/+2
| | | | | * bootstrap.c (main: scrript_paging_file): Pass LINUX_SIGNATURE arg through to add_paging_file.
* 1999-02-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-02-271-9/+27
| | | | | | | | | | | | | | | | * def_pager_setup.c (add_paging_file): New arg CHECK_LINUX_SIGNATURE, pass down to create_paging_partition. * default_pager.c (create_paging_partition): New arg CHECK_LINUX_SIGNATURE, pass down new_partition. (new_partition): New arg CHECK_LINUX_SIGNATURE: if not < 0, check first page of swap for Linux 2.0 or 2.2 signature page and obey its bad-block map; if > 0, refuse the partition if no signature found. * bootstrap.c (main): Add new boot script functions `add-raw-paging-file', `add-linux-paging-file'. Make those and `add-paging-file' all call add_paging_file with new LINUX_SIGNATURE arg of -1, 1, and 0, respectively. * default_pager.c (create_paging_partition): If new_partition returns null, return and do nothing more.
* Tue May 12 12:11:36 1998 Thomas Bushnell, n/BSG <tb@mit.edu>Thomas Bushnell1998-05-121-0/+1
| | | | | * bootstrap.c (parse_script): Free BUF before returning. Reported by Katusya Tanaka (wyvern@pb3.so-net.ne.jp).
* (safe_gets):Miles Bader1997-07-151-16/+18
| | | | | | | | Use strchr instead of index. (main): Rearrange default pager initialization. Change "(bootstrap)" to "(serverboot)" in msgs. Include <string.h>
* (main):Miles Bader1997-07-091-0/+2
| | | | Don't exit if no paging partition.
* (safe_gets):Miles Bader1997-07-081-12/+15
| | | | | | | | | | | Make sure a newline exists before removing it. Ensure that the cursor moves to the beginning of the next line. (main): Don't call translate_root. Pass more than a single character to safe_gets. (DEFAULT_ROOT): New macro. Don't include "translate_root.h".
* Fri Jun 20 15:37:15 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-06-201-7/+11
| | | | | | | | | | | | | | | * bootstrap.c (main/script_paging_file): Instead of returning an error use new variable `had_a_partition' to record whether we successfully opened a partition. (main/script_default_pager): Only start pager if HAD_A_PARTITION; otherwise print warning message. Mon Jun 16 11:52:40 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * Makefile (installationdir): Use `=' to set this instead of :=; $(prefix) is not yet available and `=' postpones the evaluation properly. Reported by Marcus G. Daniels, marcus@cathcart.sysc.pdx.edu.
* Tue Jun 10 21:54:52 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-06-111-23/+33
| | | | | | | | * disk_inode.h (struct icommon): Use short instead of uid_t/gid_t in structure definition; those are now 32 bit types. * bootstrap.c (main): Support running from command line too; this is useful at least for simple debugging.
* Thu May 1 18:40:53 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-05-011-0/+2
| | | | | * bootstrap.c (cthread_stack_size): Don't set special value here; use the default.
* Initial RevisionThomas Bushnell1997-04-031-0/+408