Rev 3400 | Rev 3474 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3400 | Rev 3423 | ||
---|---|---|---|
Line 44... | Line 44... | ||
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 | asm volatile ( |
|
- | 50 | "mr %%r3, %0\n" |
|
- | 51 | "li %%r9, 32\n" |
|
- | 52 | "sc\n" |
|
- | 53 | : |
|
- | 54 | : "r" (i) |
|
- | 55 | : "%r3","%r9" |
|
- | 56 | ); |
|
49 | } |
57 | } |
50 | 58 | ||
51 | void __tls_get_addr(void) |
59 | void __tls_get_addr(void) |
52 | { |
60 | { |
53 | } |
61 | } |
54 | 62 | ||
- | 63 | int i = 1; |
|
- | 64 | ||
55 | int main(int argc, char *argv[]) |
65 | int main(int argc, char *argv[]) |
56 | { |
66 | { |
57 | /* kputint(-1); |
67 | kputint(-1); |
58 | kputint(0x100); |
68 | /* kputint(0x100); |
59 | printf("Hello from dltest!\n"); |
69 | printf("Hello from dltest!\n"); |
60 | kputint(0x200); |
70 | kputint(0x200); |
61 | while(1);*/ |
71 | while(1);*/ |
62 | printf("Hello from dltest!\n"); |
72 | printf("Hello from dltest!\n"); |
63 | while(1); |
73 | while(1); |