Commit | Line | Data |
---|---|---|
3aa770e7 AS |
1 | /* |
2 | * Copyright (c) 2006 Andriy Skulysh <askulsyh@gmail.com> | |
3 | * | |
4 | * This file is subject to the terms and conditions of the GNU General Public | |
5 | * License. See the file "COPYING" in the main directory of this archive | |
6 | * for more details. | |
7 | * | |
8 | */ | |
9 | ||
10 | #include <linux/linkage.h> | |
f15cbe6f | 11 | #include <cpu/mmu_context.h> |
3aa770e7 | 12 | |
3aa770e7 AS |
13 | /* |
14 | * Kernel mode register usage: | |
15 | * k0 scratch | |
16 | * k1 scratch | |
1d015cf0 | 17 | * For more details, please have a look at entry.S |
3aa770e7 AS |
18 | */ |
19 | ||
1d015cf0 MD |
20 | #define k0 r0 |
21 | #define k1 r1 | |
22 | ||
3aa770e7 AS |
23 | ENTRY(wakeup_start) |
24 | ! clear STBY bit | |
1d015cf0 | 25 | mov #-126, k1 |
3aa770e7 | 26 | and #127, k0 |
1d015cf0 | 27 | mov.b k0, @k1 |
3aa770e7 AS |
28 | ! enable refresh |
29 | mov.l 5f, k1 | |
30 | mov.w 6f, k0 | |
31 | mov.w k0, @k1 | |
32 | ! jump to handler | |
3aa770e7 AS |
33 | mov.l 4f, k1 |
34 | jmp @k1 | |
1d015cf0 | 35 | nop |
3aa770e7 AS |
36 | |
37 | .align 2 | |
1d015cf0 | 38 | 4: .long handle_interrupt |
3aa770e7 AS |
39 | 5: .long 0xffffff68 |
40 | 6: .word 0x0524 | |
41 | ||
42 | ENTRY(wakeup_end) | |
43 | nop |