aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
authorP1umer <1226063714@qq.com>2022-07-20 18:38:41 +0800
committerAleksandr Nogikh <wp32pw@gmail.com>2023-01-03 11:08:12 +0100
commit08b7160aa773ecc3307eefc98e829cd10daa4b69 (patch)
tree40d8b25889cbb08c9c8e1818f5811ec4c32aeb00 /sys/targets
parentd43e0eb8383103553f75484a13b605408ddb5abd (diff)
all: add freebsd/riscv64 support
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/targets.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 45db59d11..24187d7d5 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -335,6 +335,17 @@ var List = map[string]map[string]*Target{
return nr == 482 || nr >= 569
},
},
+ RiscV64: {
+ PtrSize: 8,
+ PageSize: 4 << 10,
+ LittleEndian: true,
+ CCompiler: "clang",
+ CFlags: []string{"-m64"},
+ NeedSyscallDefine: func(nr uint64) bool {
+ // freebsd_12_shm_open, shm_open2, shm_rename, __realpathat, close_range, copy_file_range
+ return nr == 482 || nr >= 569
+ },
+ },
},
Darwin: {
AMD64: {