better svcGet*Info

This commit is contained in:
Lectem 2015-05-28 21:04:52 +02:00
parent f3bb5339f7
commit 6ca5285d10

View File

@ -275,36 +275,32 @@ svcGetSystemTick:
.global svcGetSystemInfo .global svcGetSystemInfo
.type svcGetSystemInfo, %function .type svcGetSystemInfo, %function
svcGetSystemInfo: svcGetSystemInfo:
push {r0, r4} str r0, [sp, #-0x4]!
svc 0x2A svc 0x2A
ldr r4, [sp], #4 ldr r3, [sp], #4
str r1, [r4] str r1, [r3]
str r2, [r4, #4] str r2, [r3,#4]
str r3, [r4, #8] bx lr
ldr r4, [sp], #4
bx lr
.global svcGetProcessInfo .global svcGetProcessInfo
.type svcGetProcessInfo, %function .type svcGetProcessInfo, %function
svcGetProcessInfo: svcGetProcessInfo:
push {r0,r4} str r0, [sp, #-0x4]!
svc 0x2B svc 0x2B
ldr r4, [sp], #4 ldr r3, [sp], #4
str r1, [r4] str r1, [r3]
str r2, [r4, #4] str r2, [r3,#4]
ldr r4, [sp], #4 bx lr
bx lr
.global svcGetThreadInfo .global svcGetThreadInfo
.type svcGetThreadInfo, %function .type svcGetThreadInfo, %function
svcGetThreadInfo: svcGetThreadInfo:
push {r0,r4} str r0, [sp, #-0x4]!
svc 0x2C svc 0x2C
ldr r4, [sp], #4 ldr r3, [sp], #4
str r1, [r4] str r1, [r3]
str r2, [r4, #4] str r2, [r3,#4]
ldr r4, [sp], #4 bx lr
bx lr
.global svcConnectToPort .global svcConnectToPort
.type svcConnectToPort, %function .type svcConnectToPort, %function