Rev 2982 | Rev 3400 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2982 | Rev 2996 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | 36 | ||
37 | #include <stdio.h> |
37 | #include <stdio.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 | } |
|
- | 50 | ||
- | 51 | void __tls_get_addr(void) |
|
- | 52 | { |
|
49 | } |
53 | } |
50 | 54 | ||
51 | int main(int argc, char *argv[]) |
55 | int main(int argc, char *argv[]) |
52 | { |
56 | { |
53 | kputint(-1); |
57 | kputint(-1); |