let the modular code load the sysv modules.

This commit is contained in:
christos 2018-04-12 20:43:44 +00:00
parent 93433845a4
commit b5c899a4dd
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $ */
/* $NetBSD: kern_stub.c,v 1.45 2018/04/12 20:43:44 christos Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@ -62,11 +62,12 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.45 2018/04/12 20:43:44 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ktrace.h"
#include "opt_sysv.h"
#include "opt_modular.h"
#endif
#include <sys/param.h>
@ -89,6 +90,7 @@ bool default_bus_space_handle_is_equal(bus_space_tag_t, bus_space_handle_t,
/*
* SYSV Semaphores, Shared Memory, Message Queues
*/
#ifndef MODULAR
#ifndef SYSVMSG
__strong_alias(msgctl1,enosys);
#endif
@ -98,6 +100,7 @@ __strong_alias(shmctl1,enosys);
#ifndef SYSVSEM
__strong_alias(semctl1,enosys);
#endif
#endif
/*
* ktrace stubs. ktruser() goes to enosys as we want to fail the syscall,