2013-12-06 12:04:52 +01:00
|
|
|
NOGCCERROR=yes
|
|
|
|
NOCLANGERROR=yes
|
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
# Makefile for libsys
|
2011-04-27 15:00:52 +02:00
|
|
|
.include <bsd.own.mk>
|
2006-01-16 16:44:55 +01:00
|
|
|
|
2010-02-16 15:41:33 +01:00
|
|
|
LIB= sys
|
2006-01-16 16:44:55 +01:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
CFLAGS+= -fno-builtin
|
|
|
|
|
2013-01-17 14:50:01 +01:00
|
|
|
.include "arch/${MACHINE_ARCH}/Makefile.inc"
|
|
|
|
|
|
|
|
SRCS+= \
|
2008-11-19 13:26:10 +01:00
|
|
|
alloc_util.c \
|
2006-03-15 13:06:18 +01:00
|
|
|
assert.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
asynsend.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
checkperms.c \
|
|
|
|
copyfd.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
ds.c \
|
|
|
|
env_get_prm.c \
|
|
|
|
env_panic.c \
|
|
|
|
env_parse.c \
|
|
|
|
env_prefix.c \
|
|
|
|
fkey_ctl.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
getepinfo.c \
|
|
|
|
getprocnr.c \
|
2013-03-29 22:48:22 +01:00
|
|
|
getticks.c \
|
2010-09-14 23:50:05 +02:00
|
|
|
getsysinfo.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
getuptime.c \
|
2010-02-09 16:20:09 +01:00
|
|
|
kernel_call.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
kprintf.c \
|
|
|
|
kputc.c \
|
|
|
|
kputs.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
mapdriver.c \
|
2011-11-07 16:16:08 +01:00
|
|
|
optset.c \
|
2006-03-15 13:06:18 +01:00
|
|
|
panic.c \
|
2006-06-20 10:45:04 +02:00
|
|
|
safecopies.c \
|
2010-07-01 10:32:33 +02:00
|
|
|
sched_start.c \
|
|
|
|
sched_stop.c \
|
Basic System Event Framework (SEF) with ping and live update.
SYSLIB CHANGES:
- SEF must be used by every system process and is thereby part of the system
library.
- The framework provides a receive() interface (sef_receive) for system
processes to automatically catch known system even messages and process them.
- SEF provides a default behavior for each type of system event, but allows
system processes to register callbacks to override the default behavior.
- Custom (local to the process) or predefined (provided by SEF) callback
implementations can be registered to SEF.
- SEF currently includes support for 2 types of system events:
1. SEF Ping. The event occurs every time RS sends a ping to figure out
whether a system process is still alive. The default callback implementation
provided by SEF is to notify RS back to let it know the process is alive
and kicking.
2. SEF Live update. The event occurs every time RS sends a prepare to update
message to let a system process know an update is available and to prepare
for it. The live update support is very basic for now. SEF only deals with
verifying if the prepare state can be supported by the process, dumping the
state for debugging purposes, and providing an event-driven programming
model to the process to react to state changes check-in when ready to update.
- SEF should be extended in the future to integrate support for more types of
system events. Ideally, all the cross-cutting concerns should be integrated into
SEF to avoid duplicating code and ease extensibility. Examples include:
* PM notify messages primarily used at shutdown.
* SYSTEM notify messages primarily used for signals.
* CLOCK notify messages used for system alarms.
* Debug messages. IS could still be in charge of fkey handling but would
forward the debug message to the target process (e.g. PM, if the user
requested debug information about PM). SEF would then catch the message and
do nothing unless the process has registered an appropriate callback to
deal with the event. This simplifies the programming model to print debug
information, avoids duplicating code, and reduces the effort to print
debug information.
SYSTEM PROCESSES CHANGES:
- Every system process registers SEF callbacks it needs to override the default
system behavior and calls sef_startup() right after being started.
- sef_startup() does almost nothing now, but will be extended in the future to
support callbacks of its own to let RS control and synchronize with every
system process at initialization time.
- Every system process calls sef_receive() now rather than receive() directly,
to let SEF handle predefined system events.
RS CHANGES:
- RS supports a basic single-component live update protocol now, as follows:
* When an update command is issued (via "service update *"), RS notifies the
target system process to prepare for a specific update state.
* If the process doesn't respond back in time, the update is aborted.
* When the process responds back, RS kills it and marks it for refreshing.
* The process is then automatically restarted as for a buggy process and can
start running again.
* Live update is currently prototyped as a controlled failure.
2009-12-21 15:12:21 +01:00
|
|
|
sef.c \
|
New RS and new signal handling for system processes.
UPDATING INFO:
20100317:
/usr/src/etc/system.conf updated to ignore default kernel calls: copy
it (or merge it) to /etc/system.conf.
The hello driver (/dev/hello) added to the distribution:
# cd /usr/src/commands/scripts && make clean install
# cd /dev && MAKEDEV hello
KERNEL CHANGES:
- Generic signal handling support. The kernel no longer assumes PM as a signal
manager for every process. The signal manager of a given process can now be
specified in its privilege slot. When a signal has to be delivered, the kernel
performs the lookup and forwards the signal to the appropriate signal manager.
PM is the default signal manager for user processes, RS is the default signal
manager for system processes. To enable ptrace()ing for system processes, it
is sufficient to change the default signal manager to PM. This will temporarily
disable crash recovery, though.
- sys_exit() is now split into sys_exit() (i.e. exit() for system processes,
which generates a self-termination signal), and sys_clear() (i.e. used by PM
to ask the kernel to clear a process slot when a process exits).
- Added a new kernel call (i.e. sys_update()) to swap two process slots and
implement live update.
PM CHANGES:
- Posix signal handling is no longer allowed for system processes. System
signals are split into two fixed categories: termination and non-termination
signals. When a non-termination signaled is processed, PM transforms the signal
into an IPC message and delivers the message to the system process. When a
termination signal is processed, PM terminates the process.
- PM no longer assumes itself as the signal manager for system processes. It now
makes sure that every system signal goes through the kernel before being
actually processes. The kernel will then dispatch the signal to the appropriate
signal manager which may or may not be PM.
SYSLIB CHANGES:
- Simplified SEF init and LU callbacks.
- Added additional predefined SEF callbacks to debug crash recovery and
live update.
- Fixed a temporary ack in the SEF init protocol. SEF init reply is now
completely synchronous.
- Added SEF signal event type to provide a uniform interface for system
processes to deal with signals. A sef_cb_signal_handler() callback is
available for system processes to handle every received signal. A
sef_cb_signal_manager() callback is used by signal managers to process
system signals on behalf of the kernel.
- Fixed a few bugs with memory mapping and DS.
VM CHANGES:
- Page faults and memory requests coming from the kernel are now implemented
using signals.
- Added a new VM call to swap two process slots and implement live update.
- The call is used by RS at update time and in turn invokes the kernel call
sys_update().
RS CHANGES:
- RS has been reworked with a better functional decomposition.
- Better kernel call masks. com.h now defines the set of very basic kernel calls
every system service is allowed to use. This makes system.conf simpler and
easier to maintain. In addition, this guarantees a higher level of isolation
for system libraries that use one or more kernel calls internally (e.g. printf).
- RS is the default signal manager for system processes. By default, RS
intercepts every signal delivered to every system process. This makes crash
recovery possible before bringing PM and friends in the loop.
- RS now supports fast rollback when something goes wrong while initializing
the new version during a live update.
- Live update is now implemented by keeping the two versions side-by-side and
swapping the process slots when the old version is ready to update.
- Crash recovery is now implemented by keeping the two versions side-by-side
and cleaning up the old version only when the recovery process is complete.
DS CHANGES:
- Fixed a bug when the process doing ds_publish() or ds_delete() is not known
by DS.
- Fixed the completely broken support for strings. String publishing is now
implemented in the system library and simply wraps publishing of memory ranges.
Ideally, we should adopt a similar approach for other data types as well.
- Test suite fixed.
DRIVER CHANGES:
- The hello driver has been added to the Minix distribution to demonstrate basic
live update and crash recovery functionalities.
- Other drivers have been adapted to conform the new SEF interface.
2010-03-17 02:15:29 +01:00
|
|
|
sef_init.c \
|
Basic System Event Framework (SEF) with ping and live update.
SYSLIB CHANGES:
- SEF must be used by every system process and is thereby part of the system
library.
- The framework provides a receive() interface (sef_receive) for system
processes to automatically catch known system even messages and process them.
- SEF provides a default behavior for each type of system event, but allows
system processes to register callbacks to override the default behavior.
- Custom (local to the process) or predefined (provided by SEF) callback
implementations can be registered to SEF.
- SEF currently includes support for 2 types of system events:
1. SEF Ping. The event occurs every time RS sends a ping to figure out
whether a system process is still alive. The default callback implementation
provided by SEF is to notify RS back to let it know the process is alive
and kicking.
2. SEF Live update. The event occurs every time RS sends a prepare to update
message to let a system process know an update is available and to prepare
for it. The live update support is very basic for now. SEF only deals with
verifying if the prepare state can be supported by the process, dumping the
state for debugging purposes, and providing an event-driven programming
model to the process to react to state changes check-in when ready to update.
- SEF should be extended in the future to integrate support for more types of
system events. Ideally, all the cross-cutting concerns should be integrated into
SEF to avoid duplicating code and ease extensibility. Examples include:
* PM notify messages primarily used at shutdown.
* SYSTEM notify messages primarily used for signals.
* CLOCK notify messages used for system alarms.
* Debug messages. IS could still be in charge of fkey handling but would
forward the debug message to the target process (e.g. PM, if the user
requested debug information about PM). SEF would then catch the message and
do nothing unless the process has registered an appropriate callback to
deal with the event. This simplifies the programming model to print debug
information, avoids duplicating code, and reduces the effort to print
debug information.
SYSTEM PROCESSES CHANGES:
- Every system process registers SEF callbacks it needs to override the default
system behavior and calls sef_startup() right after being started.
- sef_startup() does almost nothing now, but will be extended in the future to
support callbacks of its own to let RS control and synchronize with every
system process at initialization time.
- Every system process calls sef_receive() now rather than receive() directly,
to let SEF handle predefined system events.
RS CHANGES:
- RS supports a basic single-component live update protocol now, as follows:
* When an update command is issued (via "service update *"), RS notifies the
target system process to prepare for a specific update state.
* If the process doesn't respond back in time, the update is aborted.
* When the process responds back, RS kills it and marks it for refreshing.
* The process is then automatically restarted as for a buggy process and can
start running again.
* Live update is currently prototyped as a controlled failure.
2009-12-21 15:12:21 +01:00
|
|
|
sef_liveupdate.c \
|
|
|
|
sef_ping.c \
|
New RS and new signal handling for system processes.
UPDATING INFO:
20100317:
/usr/src/etc/system.conf updated to ignore default kernel calls: copy
it (or merge it) to /etc/system.conf.
The hello driver (/dev/hello) added to the distribution:
# cd /usr/src/commands/scripts && make clean install
# cd /dev && MAKEDEV hello
KERNEL CHANGES:
- Generic signal handling support. The kernel no longer assumes PM as a signal
manager for every process. The signal manager of a given process can now be
specified in its privilege slot. When a signal has to be delivered, the kernel
performs the lookup and forwards the signal to the appropriate signal manager.
PM is the default signal manager for user processes, RS is the default signal
manager for system processes. To enable ptrace()ing for system processes, it
is sufficient to change the default signal manager to PM. This will temporarily
disable crash recovery, though.
- sys_exit() is now split into sys_exit() (i.e. exit() for system processes,
which generates a self-termination signal), and sys_clear() (i.e. used by PM
to ask the kernel to clear a process slot when a process exits).
- Added a new kernel call (i.e. sys_update()) to swap two process slots and
implement live update.
PM CHANGES:
- Posix signal handling is no longer allowed for system processes. System
signals are split into two fixed categories: termination and non-termination
signals. When a non-termination signaled is processed, PM transforms the signal
into an IPC message and delivers the message to the system process. When a
termination signal is processed, PM terminates the process.
- PM no longer assumes itself as the signal manager for system processes. It now
makes sure that every system signal goes through the kernel before being
actually processes. The kernel will then dispatch the signal to the appropriate
signal manager which may or may not be PM.
SYSLIB CHANGES:
- Simplified SEF init and LU callbacks.
- Added additional predefined SEF callbacks to debug crash recovery and
live update.
- Fixed a temporary ack in the SEF init protocol. SEF init reply is now
completely synchronous.
- Added SEF signal event type to provide a uniform interface for system
processes to deal with signals. A sef_cb_signal_handler() callback is
available for system processes to handle every received signal. A
sef_cb_signal_manager() callback is used by signal managers to process
system signals on behalf of the kernel.
- Fixed a few bugs with memory mapping and DS.
VM CHANGES:
- Page faults and memory requests coming from the kernel are now implemented
using signals.
- Added a new VM call to swap two process slots and implement live update.
- The call is used by RS at update time and in turn invokes the kernel call
sys_update().
RS CHANGES:
- RS has been reworked with a better functional decomposition.
- Better kernel call masks. com.h now defines the set of very basic kernel calls
every system service is allowed to use. This makes system.conf simpler and
easier to maintain. In addition, this guarantees a higher level of isolation
for system libraries that use one or more kernel calls internally (e.g. printf).
- RS is the default signal manager for system processes. By default, RS
intercepts every signal delivered to every system process. This makes crash
recovery possible before bringing PM and friends in the loop.
- RS now supports fast rollback when something goes wrong while initializing
the new version during a live update.
- Live update is now implemented by keeping the two versions side-by-side and
swapping the process slots when the old version is ready to update.
- Crash recovery is now implemented by keeping the two versions side-by-side
and cleaning up the old version only when the recovery process is complete.
DS CHANGES:
- Fixed a bug when the process doing ds_publish() or ds_delete() is not known
by DS.
- Fixed the completely broken support for strings. String publishing is now
implemented in the system library and simply wraps publishing of memory ranges.
Ideally, we should adopt a similar approach for other data types as well.
- Test suite fixed.
DRIVER CHANGES:
- The hello driver has been added to the Minix distribution to demonstrate basic
live update and crash recovery functionalities.
- Other drivers have been adapted to conform the new SEF interface.
2010-03-17 02:15:29 +01:00
|
|
|
sef_signal.c \
|
2011-07-04 02:51:12 +02:00
|
|
|
sqrt_approx.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
srv_fork.c \
|
|
|
|
srv_kill.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
stacktrace.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_abort.c \
|
New RS and new signal handling for system processes.
UPDATING INFO:
20100317:
/usr/src/etc/system.conf updated to ignore default kernel calls: copy
it (or merge it) to /etc/system.conf.
The hello driver (/dev/hello) added to the distribution:
# cd /usr/src/commands/scripts && make clean install
# cd /dev && MAKEDEV hello
KERNEL CHANGES:
- Generic signal handling support. The kernel no longer assumes PM as a signal
manager for every process. The signal manager of a given process can now be
specified in its privilege slot. When a signal has to be delivered, the kernel
performs the lookup and forwards the signal to the appropriate signal manager.
PM is the default signal manager for user processes, RS is the default signal
manager for system processes. To enable ptrace()ing for system processes, it
is sufficient to change the default signal manager to PM. This will temporarily
disable crash recovery, though.
- sys_exit() is now split into sys_exit() (i.e. exit() for system processes,
which generates a self-termination signal), and sys_clear() (i.e. used by PM
to ask the kernel to clear a process slot when a process exits).
- Added a new kernel call (i.e. sys_update()) to swap two process slots and
implement live update.
PM CHANGES:
- Posix signal handling is no longer allowed for system processes. System
signals are split into two fixed categories: termination and non-termination
signals. When a non-termination signaled is processed, PM transforms the signal
into an IPC message and delivers the message to the system process. When a
termination signal is processed, PM terminates the process.
- PM no longer assumes itself as the signal manager for system processes. It now
makes sure that every system signal goes through the kernel before being
actually processes. The kernel will then dispatch the signal to the appropriate
signal manager which may or may not be PM.
SYSLIB CHANGES:
- Simplified SEF init and LU callbacks.
- Added additional predefined SEF callbacks to debug crash recovery and
live update.
- Fixed a temporary ack in the SEF init protocol. SEF init reply is now
completely synchronous.
- Added SEF signal event type to provide a uniform interface for system
processes to deal with signals. A sef_cb_signal_handler() callback is
available for system processes to handle every received signal. A
sef_cb_signal_manager() callback is used by signal managers to process
system signals on behalf of the kernel.
- Fixed a few bugs with memory mapping and DS.
VM CHANGES:
- Page faults and memory requests coming from the kernel are now implemented
using signals.
- Added a new VM call to swap two process slots and implement live update.
- The call is used by RS at update time and in turn invokes the kernel call
sys_update().
RS CHANGES:
- RS has been reworked with a better functional decomposition.
- Better kernel call masks. com.h now defines the set of very basic kernel calls
every system service is allowed to use. This makes system.conf simpler and
easier to maintain. In addition, this guarantees a higher level of isolation
for system libraries that use one or more kernel calls internally (e.g. printf).
- RS is the default signal manager for system processes. By default, RS
intercepts every signal delivered to every system process. This makes crash
recovery possible before bringing PM and friends in the loop.
- RS now supports fast rollback when something goes wrong while initializing
the new version during a live update.
- Live update is now implemented by keeping the two versions side-by-side and
swapping the process slots when the old version is ready to update.
- Crash recovery is now implemented by keeping the two versions side-by-side
and cleaning up the old version only when the recovery process is complete.
DS CHANGES:
- Fixed a bug when the process doing ds_publish() or ds_delete() is not known
by DS.
- Fixed the completely broken support for strings. String publishing is now
implemented in the system library and simply wraps publishing of memory ranges.
Ideally, we should adopt a similar approach for other data types as well.
- Test suite fixed.
DRIVER CHANGES:
- The hello driver has been added to the Minix distribution to demonstrate basic
live update and crash recovery functionalities.
- Other drivers have been adapted to conform the new SEF interface.
2010-03-17 02:15:29 +01:00
|
|
|
sys_clear.c \
|
2006-10-30 16:53:38 +01:00
|
|
|
sys_cprof.c \
|
2013-09-21 00:58:46 +02:00
|
|
|
sys_diagctl.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_endsig.c \
|
|
|
|
sys_exec.c \
|
|
|
|
sys_exit.c \
|
|
|
|
sys_fork.c \
|
|
|
|
sys_getinfo.c \
|
|
|
|
sys_getsig.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_hz.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_irqctl.c \
|
|
|
|
sys_kill.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_mcontext.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_memset.c \
|
2013-08-28 06:43:45 +02:00
|
|
|
sys_padconf.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_physcopy.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_privctl.c \
|
|
|
|
sys_profbuf.c \
|
Merge of David's ptrace branch. Summary:
o Support for ptrace T_ATTACH/T_DETACH and T_SYSCALL
o PM signal handling logic should now work properly, even with debuggers
being present
o Asynchronous PM/VFS protocol, full IPC support for senda(), and
AMF_NOREPLY senda() flag
DETAILS
Process stop and delay call handling of PM:
o Added sys_runctl() kernel call with sys_stop() and sys_resume()
aliases, for PM to stop and resume a process
o Added exception for sending/syscall-traced processes to sys_runctl(),
and matching SIGKREADY pseudo-signal to PM
o Fixed PM signal logic to deal with requests from a process after
stopping it (so-called "delay calls"), using the SIGKREADY facility
o Fixed various PM panics due to race conditions with delay calls versus
VFS calls
o Removed special PRIO_STOP priority value
o Added SYS_LOCK RTS kernel flag, to stop an individual process from
running while modifying its process structure
Signal and debugger handling in PM:
o Fixed debugger signals being dropped if a second signal arrives when
the debugger has not retrieved the first one
o Fixed debugger signals being sent to the debugger more than once
o Fixed debugger signals unpausing process in VFS; removed PM_UNPAUSE_TR
protocol message
o Detached debugger signals from general signal logic and from being
blocked on VFS calls, meaning that even VFS can now be traced
o Fixed debugger being unable to receive more than one pending signal in
one process stop
o Fixed signal delivery being delayed needlessly when multiple signals
are pending
o Fixed wait test for tracer, which was returning for children that were
not waited for
o Removed second parallel pending call from PM to VFS for any process
o Fixed process becoming runnable between exec() and debugger trap
o Added support for notifying the debugger before the parent when a
debugged child exits
o Fixed debugger death causing child to remain stopped forever
o Fixed consistently incorrect use of _NSIG
Extensions to ptrace():
o Added T_ATTACH and T_DETACH ptrace request, to attach and detach a
debugger to and from a process
o Added T_SYSCALL ptrace request, to trace system calls
o Added T_SETOPT ptrace request, to set trace options
o Added TO_TRACEFORK trace option, to attach automatically to children
of a traced process
o Added TO_ALTEXEC trace option, to send SIGSTOP instead of SIGTRAP upon
a successful exec() of the tracee
o Extended T_GETUSER ptrace support to allow retrieving a process's priv
structure
o Removed T_STOP ptrace request again, as it does not help implementing
debuggers properly
o Added MINIX3-specific ptrace test (test42)
o Added proper manual page for ptrace(2)
Asynchronous PM/VFS interface:
o Fixed asynchronous messages not being checked when receive() is called
with an endpoint other than ANY
o Added AMF_NOREPLY senda() flag, preventing such messages from
satisfying the receive part of a sendrec()
o Added asynsend3() that takes optional flags; asynsend() is now a
#define passing in 0 as third parameter
o Made PM/VFS protocol asynchronous; reintroduced tell_fs()
o Made PM_BASE request/reply number range unique
o Hacked in a horrible temporary workaround into RS to deal with newly
revealed RS-PM-VFS race condition triangle until VFS is asynchronous
System signal handling:
o Fixed shutdown logic of device drivers; removed old SIGKSTOP signal
o Removed is-superuser check from PM's do_procstat() (aka getsigset())
o Added sigset macros to allow system processes to deal with the full
signal set, rather than just the POSIX subset
Miscellaneous PM fixes:
o Split do_getset into do_get and do_set, merging common code and making
structure clearer
o Fixed setpriority() being able to put to sleep processes using an
invalid parameter, or revive zombie processes
o Made find_proc() global; removed obsolete proc_from_pid()
o Cleanup here and there
Also included:
o Fixed false-positive boot order kernel warning
o Removed last traces of old NOTIFY_FROM code
THINGS OF POSSIBLE INTEREST
o It should now be possible to run PM at any priority, even lower than
user processes
o No assumptions are made about communication speed between PM and VFS,
although communication must be FIFO
o A debugger will now receive incoming debuggee signals at kill time
only; the process may not yet be fully stopped
o A first step has been made towards making the SYSTEM task preemptible
2009-09-30 11:57:22 +02:00
|
|
|
sys_runctl.c \
|
2006-06-20 10:45:04 +02:00
|
|
|
sys_safecopy.c \
|
2012-09-22 22:02:14 +02:00
|
|
|
sys_safememset.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_schedctl.c \
|
|
|
|
sys_schedule.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_setalarm.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_setgrant.c \
|
2013-03-30 17:59:21 +01:00
|
|
|
sys_settime.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_sigreturn.c \
|
|
|
|
sys_sigsend.c \
|
2006-10-30 16:53:38 +01:00
|
|
|
sys_sprof.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_statectl.c \
|
2007-08-07 14:04:29 +02:00
|
|
|
sys_stime.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_times.c \
|
|
|
|
sys_trace.c \
|
|
|
|
sys_umap.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_update.c \
|
2006-01-16 16:44:55 +01:00
|
|
|
sys_vircopy.c \
|
2008-11-19 13:26:10 +01:00
|
|
|
sys_vmctl.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
sys_vsafecopy.c \
|
2009-08-15 23:37:26 +02:00
|
|
|
sys_vtimer.c \
|
2012-03-21 23:51:18 +01:00
|
|
|
sys_vumap.c \
|
2006-07-13 16:50:23 +02:00
|
|
|
taskcall.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
tickdelay.c \
|
|
|
|
timers.c \
|
2013-03-20 20:18:52 +01:00
|
|
|
vm_cache.c \
|
2008-11-19 13:26:10 +01:00
|
|
|
vm_exit.c \
|
|
|
|
vm_fork.c \
|
2010-01-19 22:00:20 +01:00
|
|
|
vm_info.c \
|
2008-11-19 13:26:10 +01:00
|
|
|
vm_map_phys.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
vm_memctl.c \
|
2010-11-17 15:53:07 +01:00
|
|
|
vm_notify_sig.c \
|
2012-06-06 00:50:13 +02:00
|
|
|
vm_procctl.c \
|
2013-11-03 22:33:44 +01:00
|
|
|
vm_query_exit.c \
|
|
|
|
vm_set_priv.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
vm_update.c
|
2006-01-16 16:44:55 +01:00
|
|
|
|
2012-08-28 19:34:08 +02:00
|
|
|
.if ${MKPCI} != "no"
|
|
|
|
SRCS+= pci_attr_r16.c \
|
|
|
|
pci_attr_r32.c \
|
|
|
|
pci_attr_r8.c \
|
|
|
|
pci_attr_w16.c \
|
|
|
|
pci_attr_w32.c \
|
|
|
|
pci_attr_w8.c \
|
|
|
|
pci_del_acl.c \
|
|
|
|
pci_dev_name.c \
|
|
|
|
pci_find_dev.c \
|
|
|
|
pci_first_dev.c \
|
|
|
|
pci_get_bar.c \
|
|
|
|
pci_ids.c \
|
|
|
|
pci_init.c \
|
|
|
|
pci_next_dev.c \
|
|
|
|
pci_rescan_bus.c \
|
|
|
|
pci_reserve.c \
|
|
|
|
pci_set_acl.c \
|
|
|
|
pci_slot_name.c
|
|
|
|
.endif
|
|
|
|
|
2011-08-09 10:39:33 +02:00
|
|
|
.if ${MKCOVERAGE} != "no"
|
|
|
|
SRCS+= gcov.c \
|
|
|
|
sef_gcov.c
|
|
|
|
CPPFLAGS+= -DUSE_COVERAGE
|
|
|
|
.endif
|
2011-07-04 02:51:12 +02:00
|
|
|
|
2011-09-02 16:57:22 +02:00
|
|
|
.if ${USE_LIVEUPDATE} != "no"
|
|
|
|
CPPFLAGS+= -DUSE_LIVEUPDATE
|
|
|
|
.endif
|
|
|
|
|
2011-09-16 14:57:49 +02:00
|
|
|
.if ${USE_SYSDEBUG} != "no"
|
|
|
|
CPPFLAGS+= -DUSE_SYSDEBUG
|
|
|
|
.endif
|
|
|
|
|
2012-06-06 13:16:32 +02:00
|
|
|
CPPFLAGS.sched_start.c+= -I${NETBSDSRCDIR}
|
2010-07-01 10:32:33 +02:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.lib.mk>
|