Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2128 | jermar | 1 | # |
2 | # Copyright (c) 2003-2004 Jakub Jermar |
||
3 | # All rights reserved. |
||
4 | # |
||
5 | # Redistribution and use in source and binary forms, with or without |
||
6 | # modification, are permitted provided that the following conditions |
||
7 | # are met: |
||
8 | # |
||
9 | # - Redistributions of source code must retain the above copyright |
||
10 | # notice, this list of conditions and the following disclaimer. |
||
11 | # - Redistributions in binary form must reproduce the above copyright |
||
12 | # notice, this list of conditions and the following disclaimer in the |
||
13 | # documentation and/or other materials provided with the distribution. |
||
14 | # - The name of the author may not be used to endorse or promote products |
||
15 | # derived from this software without specific prior written permission. |
||
16 | # |
||
17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
||
18 | # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
||
19 | # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||
20 | # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
||
21 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
||
22 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
||
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
27 | # |
||
28 | |||
29 | .text |
||
30 | |||
31 | .global calibrate_delay_loop |
||
32 | .global asm_delay_loop |
||
33 | .global dummy |
||
2171 | kebrt | 34 | |
35 | #.global arch_grab_console |
||
36 | #.global arch_release_console |
||
37 | |||
2128 | jermar | 38 | .global cpu_halt |
39 | .global fpu_context_restore |
||
40 | .global fpu_context_save |
||
41 | .global fpu_enable |
||
42 | .global fpu_init |
||
2171 | kebrt | 43 | |
2162 | stepan | 44 | #.global interrupts_disable |
45 | #.global interrupts_enable |
||
46 | #.global interrupts_read |
||
47 | #.global interrupts_restore |
||
2171 | kebrt | 48 | #.global memcpy |
49 | #.global memcpy_from_uspace |
||
50 | #.global memcpy_to_uspace |
||
51 | #.global memsetb |
||
52 | |||
2128 | jermar | 53 | .global panic_printf |
54 | .global symbol_table |
||
55 | .global sys_tls_set |
||
2171 | kebrt | 56 | |
2163 | jancik | 57 | #.global tlb_invalidate_asid |
58 | #.global tlb_invalidate_pages |
||
2171 | kebrt | 59 | |
2128 | jermar | 60 | .global userspace |
61 | |||
62 | calibrate_delay_loop: |
||
2200 | jancik | 63 | # stop gxemul |
64 | ldr r1, =0x10000010 |
||
65 | eor r2, r2 |
||
66 | strb r3, [r1, r2] |
||
67 | bkpt |
||
68 | |||
2128 | jermar | 69 | asm_delay_loop: |
2200 | jancik | 70 | mov pc, lr // ret |
2128 | jermar | 71 | |
72 | cpu_halt: |
||
2200 | jancik | 73 | bkpt |
74 | |||
2128 | jermar | 75 | fpu_context_restore: |
2200 | jancik | 76 | bkpt |
77 | |||
2128 | jermar | 78 | fpu_context_save: |
2200 | jancik | 79 | bkpt |
80 | |||
2128 | jermar | 81 | fpu_enable: |
2200 | jancik | 82 | bkpt |
83 | |||
2128 | jermar | 84 | fpu_init: |
2200 | jancik | 85 | bkpt |
86 | |||
2128 | jermar | 87 | panic_printf: |
2200 | jancik | 88 | bl aux_printf |
89 | # stop gxemul |
||
90 | ldr r1, =0x10000010 |
||
91 | eor r2, r2 |
||
92 | strb r3, [r1, r2] |
||
93 | bkpt |
||
94 | |||
2128 | jermar | 95 | symbol_table: |
2200 | jancik | 96 | bkpt |
97 | |||
2128 | jermar | 98 | sys_tls_set: |
2200 | jancik | 99 | bkpt |
100 | |||
2128 | jermar | 101 | userspace: |
2200 | jancik | 102 | bkpt |
2128 | jermar | 103 | |
104 | dummy: |
||
105 | |||
106 | 0: |
||
2200 | jancik | 107 | bkpt |