Previously the #ifdefs for some debug syscalls relied on definitions from Makefile.flags in sel4_tools. This changes them to use configs defined in autoconf.h which makes them easier to import when building projects that don't use sel4_tools.
59 lines
2.3 KiB
XML
59 lines
2.3 KiB
XML
<?xml version="1.0" ?>
|
|
<!--
|
|
Copyright 2014, NICTA
|
|
|
|
This software may be distributed and modified according to the terms of
|
|
the BSD 2-Clause license. Note that NO WARRANTY is provided.
|
|
See "LICENSE_BSD2.txt" for details.
|
|
|
|
@TAG(NICTA_BSD)
|
|
-->
|
|
<!-- Please see syscalls.xsd to see the format of this file -->
|
|
<syscalls>
|
|
<!-- official API syscalls -->
|
|
<api>
|
|
<config>
|
|
<syscall name="Call" />
|
|
<syscall name="ReplyRecv" />
|
|
<syscall name="Send" />
|
|
<syscall name="NBSend" />
|
|
<syscall name="Recv" />
|
|
<syscall name="Reply" />
|
|
<syscall name="Yield" />
|
|
<syscall name="NBRecv" />
|
|
</config>
|
|
</api>
|
|
<!-- Syscalls on the unknown syscall path. These definitions will be wrapped in #ifdef name -->
|
|
<debug>
|
|
<config condition="defined CONFIG_DEBUG_BUILD">
|
|
<syscall name="DebugPutChar" />
|
|
<syscall name="DebugHalt" />
|
|
<syscall name="DebugCapIdentify" />
|
|
<syscall name="DebugSnapshot" />
|
|
</config>
|
|
<config condition="defined CONFIG_DEBUG_BUILD">
|
|
<syscall name="DebugNameThread"/>
|
|
</config>
|
|
<config condition="defined CONFIG_DANGEROUS_CODE_INJECTION">
|
|
<syscall name="DebugRun"/>
|
|
</config>
|
|
<config condition="defined CONFIG_ENABLE_BENCHMARKS">
|
|
<syscall name="BenchmarkFlushCaches" />
|
|
<syscall name="BenchmarkResetLog" />
|
|
<syscall name="BenchmarkFinalizeLog" />
|
|
<syscall name="BenchmarkSetLogBuffer" />
|
|
<syscall name="BenchmarkNullSyscall" />
|
|
</config>
|
|
<config condition="defined CONFIG_BENCHMARK_TRACK_UTILISATION">
|
|
<syscall name="BenchmarkGetThreadUtilisation" />
|
|
<syscall name="BenchmarkResetThreadUtilisation" />
|
|
</config>
|
|
<!-- This is not a debug syscall, but it needs to not appear in the 'API' syscall list
|
|
so that the check of 'is this a valid syscall' can remain a simple range check.
|
|
Therefore we'll put this here and the arch code will handle it before
|
|
passing to handleUnknownSyscall -->
|
|
<config condition="defined CONFIG_VTX">
|
|
<syscall name="VMEnter"/>
|
|
</config>
|
|
</debug>
|
|
</syscalls>
|