Go to the documentation of this file.
18 #ifndef __LIB_LIBARCH_ARM_ARMTRAPS_H
19 #define __LIB_LIBARCH_ARM_ARMTRAPS_H
61 register unsigned reg0
asm (
"r0") = api;
62 register unsigned reg1
asm (
"r1") = arg1;
64 asm volatile (
"swi #0\n"
66 :
"r"(reg0),
"r"(reg1)
82 register unsigned reg0
asm (
"r0") = api;
83 register unsigned reg1
asm (
"r1") = arg1;
84 register unsigned reg2
asm (
"r2") = arg2;
86 asm volatile (
"swi #0\n"
88 :
"r"(reg0),
"r"(reg1),
"r"(reg2)
105 register unsigned reg0
asm (
"r0") = api;
106 register unsigned reg1
asm (
"r1") = arg1;
107 register unsigned reg2
asm (
"r2") = arg2;
108 register unsigned reg3
asm (
"r3") = arg3;
110 asm volatile (
"swi #0\n"
112 :
"r"(reg0),
"r"(reg1),
"r"(reg2),
"r"(reg3)
131 register unsigned reg0
asm (
"r0") = api;
132 register unsigned reg1
asm (
"r1") = arg1;
133 register unsigned reg2
asm (
"r2") = arg2;
134 register unsigned reg3
asm (
"r3") = arg3;
135 register unsigned reg4
asm (
"r4") = arg4;
137 asm volatile (
"swi #0\n"
139 :
"r"(reg0),
"r"(reg1),
"r"(reg2),
"r"(reg3),
"r"(reg4)
159 register unsigned reg0
asm (
"r0") = api;
160 register unsigned reg1
asm (
"r1") = arg1;
161 register unsigned reg2
asm (
"r2") = arg2;
162 register unsigned reg3
asm (
"r3") = arg3;
163 register unsigned reg4
asm (
"r4") = arg4;
164 register unsigned reg5
asm (
"r5") = arg5;
166 asm volatile (
"swi #0\n"
168 :
"r"(reg0),
"r"(reg1),
"r"(reg2),
"r"(reg3),
"r"(reg4),
"r"(reg5)
unsigned long ulong
Unsigned long number.
ulong trapKernel1(ulong api, ulong arg1)
Perform a kernel trap with 1 argument.
ulong trapKernel5(ulong api, ulong arg1, ulong arg2, ulong arg3, ulong arg4, ulong arg5)
Perform a kernel trap with 5 arguments.
ulong trapKernel2(ulong api, ulong arg1, ulong arg2)
Perform a kernel trap with 2 arguments.
ulong trapKernel4(ulong api, ulong arg1, ulong arg2, ulong arg3, ulong arg4)
Perform a kernel trap with 4 arguments.
ulong trapKernel3(ulong api, ulong arg1, ulong arg2, ulong arg3)
Perform a kernel trap with 3 arguments.