Rev 2128 | Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2128 | Rev 2465 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | # |
1 | # |
2 | # Copyright (c) 2005 Jakub Jermar |
2 | # Copyright (c) 2007 Michal Kebrt |
3 | # All rights reserved. |
3 | # All rights reserved. |
4 | # |
4 | # |
5 | # Redistribution and use in source and binary forms, with or without |
5 | # Redistribution and use in source and binary forms, with or without |
6 | # modification, are permitted provided that the following conditions |
6 | # modification, are permitted provided that the following conditions |
7 | # are met: |
7 | # are met: |
Line 30... | Line 30... | ||
30 | 30 | ||
31 | .global context_save |
31 | .global context_save |
32 | .global context_restore |
32 | .global context_restore |
33 | 33 | ||
34 | context_save: |
34 | context_save: |
- | 35 | stmia r0!, {sp, lr} |
|
- | 36 | stmia r0!, {r4-r11} |
|
- | 37 | ||
- | 38 | # return 1 |
|
35 | /* TODO */ |
39 | mov r0, #1 |
- | 40 | mov pc, lr |
|
36 | 41 | ||
37 | context_restore: |
42 | context_restore: |
- | 43 | ldmia r0!, {sp, lr} |
|
- | 44 | ldmia r0!, {r4-r11} |
|
- | 45 | ||
- | 46 | #return 0 |
|
38 | /* TODO */ |
47 | mov r0, #0 |
- | 48 | mov pc, lr |
|
- | 49 |