diff options
Diffstat (limited to 'boot')
-rw-r--r-- | boot/Makefile | 1 | ||||
-rw-r--r-- | boot/boot.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/boot/Makefile b/boot/Makefile index e2eeb20b..bbf19ea9 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -26,6 +26,7 @@ MIGSTUBS = machServer.o mach_hostServer.o gnumachServer.o task_notifyServer.o OBJS = boot.o $(COMMON-OBJS) $(MIGSTUBS) target = boot MIGSFLAGS=-imacros $(srcdir)/mig-mutate.h -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 +device-MIGSFLAGS=-DDEVICE_ENABLE_DEVICE_OPEN_NEW io-MIGSFLAGS=-DREPLY_PORTS -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 HURDLIBS = store shouldbeinlibc ihash LDLIBS += -lpthread diff --git a/boot/boot.c b/boot/boot.c index 3fa9ddab..b661f09c 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -992,6 +992,19 @@ ds_device_open (mach_port_t master_port, } kern_return_t +ds_device_open_new (mach_port_t master_port, + mach_port_t reply_port, + mach_msg_type_name_t reply_type, + dev_mode_t mode, + const_dev_name_t name, + mach_port_t *device, + mach_msg_type_name_t *devicetype) +{ + return ds_device_open (master_port, reply_port, reply_type, mode, + name, device, devicetype); +} + +kern_return_t ds_device_close (device_t device) { if (device != pseudo_console && device != pseudo_root) |