mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 04:19:34 +08:00
Use compile-time constant for vm_guest
This commit is contained in:
parent
ea87228a26
commit
bae343a308
1
Makefile
1
Makefile
@ -76,7 +76,6 @@ LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-rwlock.c
|
|||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell.c
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-signal.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-signal.c
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-subr_param.c
|
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-support.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-support.c
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sx.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sx.c
|
||||||
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-syscall-api.c
|
LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-syscall-api.c
|
||||||
|
@ -633,7 +633,6 @@ rtems.addRTEMSSourceFiles(
|
|||||||
'rtems/rtems-bsd-shell.c',
|
'rtems/rtems-bsd-shell.c',
|
||||||
'rtems/rtems-bsd-shell-netcmds.c',
|
'rtems/rtems-bsd-shell-netcmds.c',
|
||||||
'rtems/rtems-bsd-signal.c',
|
'rtems/rtems-bsd-signal.c',
|
||||||
'rtems/rtems-bsd-subr_param.c',
|
|
||||||
'rtems/rtems-bsd-support.c',
|
'rtems/rtems-bsd-support.c',
|
||||||
'rtems/rtems-bsd-sx.c',
|
'rtems/rtems-bsd-sx.c',
|
||||||
'rtems/rtems-bsd-syscall-api.c',
|
'rtems/rtems-bsd-syscall-api.c',
|
||||||
|
@ -75,7 +75,11 @@ extern int bootverbose; /* nonzero to print verbose messages */
|
|||||||
|
|
||||||
extern int maxusers; /* system tune hint */
|
extern int maxusers; /* system tune hint */
|
||||||
extern int ngroups_max; /* max # of supplemental groups */
|
extern int ngroups_max; /* max # of supplemental groups */
|
||||||
|
#ifndef __rtems__
|
||||||
extern int vm_guest; /* Running as virtual machine guest? */
|
extern int vm_guest; /* Running as virtual machine guest? */
|
||||||
|
#else /* __rtems__ */
|
||||||
|
#define vm_guest VM_GUEST_NO
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Detected virtual machine guest types. The intention is to expand
|
* Detected virtual machine guest types. The intention is to expand
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
/**
|
|
||||||
* @file
|
|
||||||
*
|
|
||||||
* @ingroup rtems_bsd_rtems
|
|
||||||
*
|
|
||||||
* @brief This file is an rtems representation of needed methods
|
|
||||||
* and/or variables associated with the FreeBSD file subr_param.c
|
|
||||||
|
|
||||||
/*
|
|
||||||
* COPYRIGHT (c) 2012. On-Line Applications Research Corporation (OAR).
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
||||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
||||||
* SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <machine/rtems-bsd-config.h>
|
|
||||||
|
|
||||||
int vm_guest = 0;
|
|
Loading…
x
Reference in New Issue
Block a user