Rev 78 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 78 | Rev 79 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/ski/ski.h> |
29 | #include <arch/ski/ski.h> |
30 | 30 | ||
- | 31 | /** Initialize debug console |
|
- | 32 | * |
|
- | 33 | * Issue SSC (Simulator System Call) to |
|
- | 34 | * to open debug console. |
|
- | 35 | */ |
|
31 | void ski_init_console(void) |
36 | void ski_init_console(void) |
32 | { |
37 | { |
33 | __asm__ ( |
38 | __asm__ ( |
34 | "mov r15=%0\n" |
39 | "mov r15=%0\n" |
35 | "break 0x80000\n" |
40 | "break 0x80000\n" |
Line 37... | Line 42... | ||
37 | : "i" (SKI_INIT_CONSOLE) |
42 | : "i" (SKI_INIT_CONSOLE) |
38 | : "r15", "r8" |
43 | : "r15", "r8" |
39 | ); |
44 | ); |
40 | } |
45 | } |
41 | 46 | ||
- | 47 | /** Display character on debug console |
|
- | 48 | * |
|
- | 49 | * Use SSC (Simulator System Call) to |
|
- | 50 | * display character on debug console. |
|
- | 51 | * |
|
- | 52 | * @param ch Character to be printed. |
|
- | 53 | */ |
|
42 | void ski_putchar(const char ch) |
54 | void ski_putchar(const char ch) |
43 | { |
55 | { |
44 | __asm__ ( |
56 | __asm__ ( |
45 | "mov r15=%0\n" |
57 | "mov r15=%0\n" |
46 | "mov r32=%1\n" /* r32 is in0 */ |
58 | "mov r32=%1\n" /* r32 is in0 */ |