Rev 256 | Rev 319 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 256 | Rev 313 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #ifndef __MIPS_ASM_H__ |
29 | #ifndef __MIPS_ASM_H__ |
30 | #define __MIPS_ASM_H__ |
30 | #define __MIPS_ASM_H__ |
31 | 31 | ||
32 | #include <arch/types.h> |
32 | #include <arch/types.h> |
- | 33 | #include <typedefs.h> |
|
33 | #include <config.h> |
34 | #include <config.h> |
34 | 35 | ||
35 | #define cpu_sleep() ; |
36 | #define cpu_sleep() ; |
36 | 37 | ||
37 | /** Return base address of current stack |
38 | /** Return base address of current stack |
Line 47... | Line 48... | ||
47 | __asm__ volatile ("and %0, $29, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); |
48 | __asm__ volatile ("and %0, $29, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); |
48 | 49 | ||
49 | return v; |
50 | return v; |
50 | } |
51 | } |
51 | 52 | ||
52 | void cpu_halt(void); |
53 | extern void cpu_halt(void); |
53 | void asm_delay_loop(__u32 t); |
54 | extern void asm_delay_loop(__u32 t); |
54 | - | ||
- | 55 | extern void userspace_asm(__address ustack); |
|
55 | 56 | ||
56 | #endif |
57 | #endif |