Rev 2967 | Rev 3689 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2967 | Rev 2996 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | 36 | ||
| 37 | #include "libtest.h" |
37 | #include "libtest.h" |
| 38 | 38 | ||
| 39 | static void kputint(unsigned i) |
39 | static void kputint(unsigned i) |
| 40 | { |
40 | { |
| 41 | unsigned dummy; |
41 | // unsigned dummy; |
| 42 | asm volatile ( |
42 | // asm volatile ( |
| 43 | "movl $30, %%eax;" |
43 | // "movl $30, %%eax;" |
| 44 | "int $0x30" |
44 | // "int $0x30" |
| 45 | : "=d" (dummy) /* output - %edx clobbered */ |
45 | // : "=d" (dummy) /* output - %edx clobbered */ |
| 46 | : "d" (i) /* input */ |
46 | // : "d" (i) /* input */ |
| 47 | : "%eax","%ecx" /* all scratch registers clobbered */ |
47 | // : "%eax","%ecx" /* all scratch registers clobbered */ |
| 48 | ); |
48 | // ); |
| 49 | } |
49 | } |
| 50 | 50 | ||
| 51 | void test_func(void) |
51 | void test_func(void) |
| 52 | { |
52 | { |
| 53 | kputint(42); |
53 | kputint(42); |