aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
Diffstat (limited to 'sys/tools')
-rw-r--r--sys/tools/makesyscalls.lua23
1 files changed, 15 insertions, 8 deletions
diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
index e225e9f7ebbe..3b88c65c4440 100644
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -144,12 +144,13 @@ local known_abi_flags = {
local known_flags = {
STD = 0x00000001,
OBSOL = 0x00000002,
- UNIMPL = 0x00000004,
- NODEF = 0x00000008,
- NOARGS = 0x00000010,
- NOPROTO = 0x00000020,
- NOSTD = 0x00000040,
- NOTSTATIC = 0x00000080,
+ RESERVED = 0x00000004,
+ UNIMPL = 0x00000008,
+ NODEF = 0x00000010,
+ NOARGS = 0x00000020,
+ NOPROTO = 0x00000040,
+ NOSTD = 0x00000080,
+ NOTSTATIC = 0x00000100,
-- Compat flags start from here. We have plenty of space.
}
@@ -905,6 +906,10 @@ local function handle_unimpl(sysnum, sysstart, sysend, comment)
end
end
+local function handle_reserved(sysnum, sysstart, sysend, comment)
+ handle_unimpl(sysnum, sysstart, sysend, "reserved for local use")
+end
+
process_syscall_def = function(line)
local sysstart, sysend, flags, funcname, sysflags
local thr_flag, syscallret
@@ -949,8 +954,8 @@ process_syscall_def = function(line)
flags = flags | known_flags[flag]
end
- if (flags & known_flags["UNIMPL"]) == 0 and sysnum == nil then
- abort(1, "Range only allowed with UNIMPL: " .. line)
+ if (flags & get_mask({"RESERVED", "UNIMPL"})) == 0 and sysnum == nil then
+ abort(1, "Range only allowed with RESERVED and UNIMPL: " .. line)
end
if (flags & known_flags["NOTSTATIC"]) ~= 0 then
@@ -1114,6 +1119,8 @@ process_syscall_def = function(line)
argalias)
elseif flags & known_flags["OBSOL"] ~= 0 then
handle_obsol(sysnum, funcname, funcomment)
+ elseif flags & known_flags["RESERVED"] ~= 0 then
+ handle_reserved(sysnum, sysstart, sysend)
elseif flags & known_flags["UNIMPL"] ~= 0 then
handle_unimpl(sysnum, sysstart, sysend, funcomment)
else