Permalink
Browse files

Mark assembly functions as such

This allows thumb interwork code to be generated.  Thanks to
<http://stackoverflow.com/a/16117760/8611>
  • Loading branch information...
singpolyma committed Apr 21, 2013
1 parent 85043f5 commit a8223b3872e2568c02451f94913204831db84aac
Showing with 6 additions and 0 deletions.
  1. +1 −0 context_switch.s
  2. +5 −0 syscalls.s
View
@@ -43,6 +43,7 @@ svc_entry:
mov sp, ip
bx lr
.type activate, %function
.global activate
activate:
/* Save kernel state */
View
@@ -1,27 +1,32 @@
.type fork, %function
.global fork
fork:
push {r7}
mov r7, #0x1
svc 0
bx lr
.type getpid, %function
.global getpid
getpid:
push {r7}
mov r7, #0x2
svc 0
bx lr
.type write, %function
.global write
write:
push {r7}
mov r7, #0x3
svc 0
bx lr
.type read, %function
.global read
read:
push {r7}
mov r7, #0x4
svc 0
bx lr
.type interrupt_wait, %function
.global interrupt_wait
interrupt_wait:
push {r7}

0 comments on commit a8223b3

Please sign in to comment.