Skip to content

Commit ac8cacb

Browse files
committed
verify emb/device/arm64 by esp target
1 parent 58e80dc commit ac8cacb

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.github/scripts/validate_device_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ VALIDATION_TARGETS=(
3131
"device/arm:cortex-m-qemu"
3232

3333
# arm64
34-
# "device/arm64:"
34+
"device/arm64:esp32"
3535

3636
# avr
3737
"device/avr:arduino"

emb/device/arm64/arm64.go

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,36 @@ func AsmFull(asm string, regs map[string]interface{}) uintptr {
2525
}
2626

2727
// Run the following system call (SVCall) with 0 arguments.
28-
func SVCall0(num uintptr) uintptr
28+
func SVCall0(num uintptr) uintptr {
29+
// TODO(zzy): implement system call (SVCall) functionality for ARM Cortex-M
30+
// TinyGo compiler implementation: tinygo/compiler/inlineasm.go emitSV64Call function
31+
panic("TODO: SVCall0")
32+
}
2933

3034
// Run the following system call (SVCall) with 1 argument.
31-
func SVCall1(num uintptr, a1 interface{}) uintptr
35+
func SVCall1(num uintptr, a1 interface{}) uintptr {
36+
// TODO(zzy): implement system call (SVCall) functionality for ARM Cortex-M
37+
// TinyGo compiler implementation: tinygo/compiler/inlineasm.go emitSV64Call function
38+
panic("TODO: SVCall1")
39+
}
3240

3341
// Run the following system call (SVCall) with 2 arguments.
34-
func SVCall2(num uintptr, a1, a2 interface{}) uintptr
42+
func SVCall2(num uintptr, a1, a2 interface{}) uintptr {
43+
// TODO(zzy): implement system call (SVCall) functionality for ARM Cortex-M
44+
// TinyGo compiler implementation: tinygo/compiler/inlineasm.go emitSV64Call function
45+
panic("TODO: SVCall2")
46+
}
3547

3648
// Run the following system call (SVCall) with 3 arguments.
37-
func SVCall3(num uintptr, a1, a2, a3 interface{}) uintptr
49+
func SVCall3(num uintptr, a1, a2, a3 interface{}) uintptr {
50+
// TODO(zzy): implement system call (SVCall) functionality for ARM Cortex-M
51+
// TinyGo compiler implementation: tinygo/compiler/inlineasm.go emitSV64Call function
52+
panic("TODO: SVCall3")
53+
}
3854

3955
// Run the following system call (SVCall) with 4 arguments.
40-
func SVCall4(num uintptr, a1, a2, a3, a4 interface{}) uintptr
56+
func SVCall4(num uintptr, a1, a2, a3, a4 interface{}) uintptr {
57+
// TODO(zzy): implement system call (SVCall) functionality for ARM Cortex-M
58+
// TinyGo compiler implementation: tinygo/compiler/inlineasm.go emitSV64Call function
59+
panic("TODO: SVCall4")
60+
}

0 commit comments

Comments
 (0)