freemyipod r819 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r818‎ | r819 | r820 >
Date:00:51, 30 November 2011
Author:theseven
Status:new
Tags:
Comment:
Fix red, forgot to commit that...
Modified paths:
  • /emcore/trunk/arm/contextswitch.S (modified) (history)

Diff [purge]

Index: emcore/trunk/arm/contextswitch.S
@@ -38,6 +38,7 @@
3939 msr cpsr_c, #0xd2
4040 mov r4, r0
4141 bl scheduler_pause_accounting
 42+switch_thread:
4243 adr lr, resume_thread
4344 mov r0, #0
4445 mov r1, r4
@@ -44,6 +45,14 @@
4546 b scheduler_switch
4647 .size yield, .-yield
4748
 49+.global leave_thread
 50+.type leave_thread, %function
 51+leave_thread:
 52+ msr cpsr_c, #0xd2
 53+ mov r4, #0
 54+ b switch_thread
 55+.size leave_thread, .-leave_thread
 56+
4857 .global syscall_handler
4958 .type syscall_handler, %function
5059 syscall_handler: