Rev 534 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 607 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | 36 | ||
37 | .global panic_printf |
37 | .global panic_printf |
38 | 38 | ||
39 | /* From printf return directly to halt() */ |
39 | /* From printf return directly to halt() */ |
40 | panic_printf: |
40 | panic_printf: |
- | 41 | jal printf |
|
- | 42 | nop |
|
- | 43 | j halt |
|
- | 44 | nop |
|
- | 45 | /* This code does not work, god knows why */ |
|
41 | lui $ra, %hi(halt) |
46 | /* lui $ra, %hi(halt) |
42 | j printf |
47 | j printf |
43 | ori $ra, %lo(halt) |
48 | ori $ra, %lo(halt) */ |