diff options
author | Justus Winter <justus@gnupg.org> | 2017-03-12 17:16:40 +0100 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-03-12 17:41:04 +0100 |
commit | 4089f37cdd776e046d51604041c3fe62a2bc1435 (patch) | |
tree | 22a6f3203934672fd2d02b934023c8afd241fbf5 /release | |
parent | ef729f8642cc96ddfd3f5b5db4d6aac057b1d397 (diff) | |
download | hurd-4089f37cdd776e046d51604041c3fe62a2bc1435.tar.gz hurd-4089f37cdd776e046d51604041c3fe62a2bc1435.tar.bz2 hurd-4089f37cdd776e046d51604041c3fe62a2bc1435.zip |
Pass the kernel's task port to proc.
Previously, the early server bootstrap relied upon a specific task
layout to determine the kernels task port. Explicitly pass it from
the kernel instead.
* boot/boot.c (default_boot_script): Add '--kernel-task' parameter to
ext2fs.
(main): New bootscript variable 'kernel-task'.
* libdiskfs/boot-start.c (diskfs_kernel_task): Declaration variable.
(diskfs_start_bootstrap): If '--kernel-task' was given to us, pass it
along to startup.
* libdiskfs/opts-std-startup.c (diskfs_kernel_task): New variable.
(startup_options): Add '--kernel-task' option.
(parse_startup_opt): Handle option.
* proc/main.c (kernel_task): New variable.
(OPT_KERNEL_TASK): New macro.
(options): New variable.
(parse_opt): New function.
(main): Parse options. Use 'kernel_task' if provided.
* release/servers.boot: Add '--kernel-task' parameter to ext2fs.
* startup/startup.c (OPT_KERNEL_TASK): New macro.
(options): Add '--kernel-task' option.
(kernel_task): New variable.
(insert_ports_fnc_t): New declaration.
(run): Add argument for a function that inserts rights into the newly
created task and adds arguments to the argument vector.
(argz_task_insert_right): New function.
(proc_insert_ports): Likewise.
(parse_opt): New function.
(main): Pass the kernel's task port to proc.
(frob_kernel_process): Use the kernel's task port.
Diffstat (limited to 'release')
-rw-r--r-- | release/servers.boot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/servers.boot b/release/servers.boot index 9ba7f6a4..8b66743f 100644 --- a/release/servers.boot +++ b/release/servers.boot @@ -3,7 +3,7 @@ # First, the bootstrap filesystem. It needs several ports as arguments, # as well as the user flags from the boot loader. -/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume) +/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} --kernel-task=${kernel-task} -T typed ${root} $(task-create) $(task-resume) # Now the exec server; to load the dynamically-linked exec server program, |