You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The alternative is unconditionally decoding SVC in the interrupt 2 handler, but it's different between arm and thumb mode and I don't think there's even a good way to check that.
I partially implemented this and I might finish it as part of #375
This is what it looks like to decode yourself (without thumb support)
I have NetBSD binaries which use this SVC form, as well as Linux at armv4l.
syscalls are working via the interrupt hook for Usercorn on ARM, MIPS, and x86, so I'm not sure what you mean by "UC_HOOK_INTR only supports X86"
The problem isn't the missing interrupt hook. SVC on ARM with any immediate value currently generates an INT 2, so I need to decode the value manually. The solution is adding a HOOK_INSN for SVC that passes the value for you.
oh yes sorry for the confusion, i mean UC_HOOK_INSN is still dependent on arch. UC_HOOK_INTR is fine because interrupts are handled in the same way, regardless of the arch.
The alternative is unconditionally decoding SVC in the interrupt 2 handler, but it's different between arm and thumb mode and I don't think there's even a good way to check that.
I partially implemented this and I might finish it as part of #375
This is what it looks like to decode yourself (without thumb support)
https://github.com/lunixbochs/usercorn/blob/5b69c01938609a217f2033755f5af0310e5786dc/go/arch/arm/linux.go#L81
The text was updated successfully, but these errors were encountered: