Rev 3552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3552 | Rev 3555 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | //void __io_init(void); |
42 | //void __io_init(void); |
43 | void __exit(void); |
43 | void __exit(void); |
44 | 44 | ||
45 | static void kputint(unsigned i) |
45 | static void kputint(unsigned i) |
46 | { |
46 | { |
47 | unsigned dummy; |
47 | // unsigned dummy; |
48 | asm volatile ( |
48 | // asm volatile ( |
49 | "movl $32, %%eax;" |
49 | // "movl $32, %%eax;" |
50 | "int $0x30" |
50 | // "int $0x30" |
51 | : "=d" (dummy) /* output - %edx clobbered */ |
51 | // : "=d" (dummy) /* output - %edx clobbered */ |
52 | : "d" (i) /* input */ |
52 | // : "d" (i) /* input */ |
53 | : "%eax","%ecx" /* all scratch registers clobbered */ |
53 | // : "%eax","%ecx" /* all scratch registers clobbered */ |
54 | ); |
54 | // ); |
55 | } |
55 | } |
56 | 56 | ||
57 | void __bootstrap(pcb_t *pcb) |
57 | void __bootstrap(pcb_t *pcb) |
58 | { |
58 | { |
59 | unsigned bias; |
59 | unsigned bias; |