aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/std/syscall_extra_linux_386.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-05 20:21:14 +0900
committerOphestra <cat@gensokyo.uk>2025-11-05 20:21:14 +0900
commit5c2b63a7f1fdfdc46312c05f083c604b4c8f47e2 (patch)
tree2a1e440156d6027c3b7a16f1b77c002ed3a4a388 /container/std/syscall_extra_linux_386.go
parent9fd97e71d0330d6b6509f28686cf53825bc80941 (diff)
container: add 386 constants
While it is unlikely a use case for hakurei on i686 exists, it does not hurt to have this support. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/std/syscall_extra_linux_386.go')
-rw-r--r--container/std/syscall_extra_linux_386.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/container/std/syscall_extra_linux_386.go b/container/std/syscall_extra_linux_386.go
new file mode 100644
index 00000000..f23c919e
--- /dev/null
+++ b/container/std/syscall_extra_linux_386.go
@@ -0,0 +1,13 @@
+package std
+
+var syscallNumExtra = map[string]int{
+ "kexec_file_load": SYS_KEXEC_FILE_LOAD,
+ "subpage_prot": SYS_SUBPAGE_PROT,
+ "switch_endian": SYS_SWITCH_ENDIAN,
+}
+
+const (
+ SYS_KEXEC_FILE_LOAD = __PNR_kexec_file_load
+ SYS_SUBPAGE_PROT = __PNR_subpage_prot
+ SYS_SWITCH_ENDIAN = __PNR_switch_endian
+)