diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2021-11-22 22:36:56 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2021-11-22 22:36:56 +0000 |
| commit | 3f8f46a0ae4f7dbe886ade676917a0d68ca1f86e (patch) | |
| tree | bc81110e138a83b4643ab2f1e21e36a8269ba5f1 /sys/tools | |
| parent | ed8a4423fba42f0aca5cfa3ce4aa1c763fdf578d (diff) | |
Diffstat (limited to 'sys/tools')
| -rw-r--r-- | sys/tools/makesyscalls.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua index 622a6ad4b1dd..fef991296316 100644 --- a/sys/tools/makesyscalls.lua +++ b/sys/tools/makesyscalls.lua @@ -60,6 +60,7 @@ local config = { abi_type_suffix = "", abi_flags = "", abi_flags_mask = 0, + abi_headers = "", ptr_intptr_t_cast = "intptr_t", } @@ -439,6 +440,16 @@ local pattern_table = { end, }, { + dump_prevline = true, + pattern = "%%ABI_HEADERS%%", + process = function() + if config['abi_headers'] ~= "" then + line = config['abi_headers'] .. "\n" + write_line('sysinc', line) + end + end, + }, + { -- Buffer anything else pattern = ".+", process = function(line, prevline) |
