summaryrefslogtreecommitdiff
path: root/boot/Makefile
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2016-10-23 11:48:06 +0200
committerJustus Winter <justus@gnupg.org>2016-10-27 11:52:14 +0200
commit205952a1dc7305f982049205e1dd39d534558c2c (patch)
tree09177215f2fabb1785885d5fe56750bf5037a932 /boot/Makefile
parent2471737c4d9d8d19436df86717c53d526a156d0d (diff)
boot: XXX hand out fake host-priv port
* NEWS: Update. * boot/Makefile (MIGSTUBS): Build stubs for the new kernel interfaces. (MIGSFLAGS): Include mutation file. (HURDLIBS): Link against libihash. * boot/boot.c (privileged, want_privileged): New variables. (pseudo_privileged_host_port): New variable. (pseudo_pset, pseudo_kernel): Likewise. (task_notification_port): Likewise. (dead_task_notification_port): Likewise. (boot_demuxer): Handle new protocols. (OPT_PRIVILEGED): New macro. (options): Add flag '--privileged' to enable the old mode. (parse_opt): Handle new flag. (allocate_pseudo_ports): New function. (main): Handle new flag. If not running privileged, allocate more pseudo ports to hand out in place of privileged kernel ports, create a task namespace, and a task that the Subhurd can frob instead of the real kernel task. (do_mach_notify_dead_name): Handle dying tasks. (S_vm_set_default_memory_manager): New function. (S_host_reboot): Likewise. (S_host_processor_set_priv): Likewise. (S_register_new_task_notification): Likewise. (task_ihash_cleanup): Likewise. (task_ihash): New variable. (task_died): New function. (S_mach_notify_new_task): Likewise. (S_processor_set_tasks): Likewise. * boot/mig-decls.h: New file. * boot/mig-mutate.h: Likewise.
Diffstat (limited to 'boot/Makefile')
-rw-r--r--boot/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/boot/Makefile b/boot/Makefile
index c8772950..d700116d 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -23,11 +23,13 @@ SRCS = mach-crt0.c boot.c ux.c sigvec.S syscall.S \
COMMON-OBJS = notifyServer.o deviceServer.o \
ioServer.o io_replyUser.o device_replyUser.o \
termServer.o bootstrapServer.o boot_script.o userland-boot.o
-OBJS = boot.o $(COMMON-OBJS)
+MIGSTUBS = machServer.o mach_hostServer.o gnumachServer.o task_notifyServer.o
+OBJS = boot.o $(COMMON-OBJS) $(MIGSTUBS)
UX-OBJS = mach-crt0.o uxboot.o sigvec.o syscall.o ux.o $(COMMON-OBJS)
target = boot
-io-MIGSFLAGS=-DREPLY_PORTS
-HURDLIBS = store shouldbeinlibc
+MIGSFLAGS=-imacros $(srcdir)/mig-mutate.h -DHURD_DEFAULT_PAYLOAD_TO_PORT=1
+io-MIGSFLAGS=-DREPLY_PORTS -DHURD_DEFAULT_PAYLOAD_TO_PORT=1
+HURDLIBS = store shouldbeinlibc ihash
LDLIBS += -lpthread
include ../Makeconf
@@ -37,8 +39,6 @@ include ../Makeconf
#/usr/local/bin/uxboot: uxboot
# cp $< $@
-MIGSFLAGS = -DHURD_DEFAULT_PAYLOAD_TO_PORT=1
-
all: boot # uxboot
uxboot.o: boot.c