zhuyanlinzyl commented on a change in pull request #5261:
URL: https://github.com/apache/incubator-nuttx/pull/5261#discussion_r790644686
##########
File path: arch/xtensa/include/syscall.h
##########
@@ -41,6 +64,194 @@
* Inline functions
****************************************************************************/
+#ifndef __ASSEMBLY__
+
+/* SVC call with SYS_ call number and no parameters */
+
+static inline uintptr_t sys_call0(unsigned int nbr)
+{
+ register long reg0 __asm__("a2") = (long)(nbr);
+
+ __asm__ __volatile__
+ (
+ "isync\n"
+ "dsync\n"
+ "esync\n"
+ "memw\n"
+ "movi a3, %1\n"
+ "wsr a3, intset\n"
Review comment:
@Ouss4 Sorry for last reply, we use sw interrupt in level 3, and
timer interrupt in level2.
Yes. A bit confused here, as I first want to use syscall, So I fixed
syscall handler error, but found I can't use it later, and still use the
syscall method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]