Rev 1982 | Rev 2048 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1982 | Rev 2043 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | 97 | ||
98 | if (config.cpu_active == 1) { |
98 | if (config.cpu_active == 1) { |
99 | /* |
99 | /* |
100 | * Create thread that polls keyboard. |
100 | * Create thread that polls keyboard. |
101 | */ |
101 | */ |
102 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll"); |
102 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); |
103 | if (!t) |
103 | if (!t) |
104 | panic("cannot create kkbdpoll\n"); |
104 | panic("cannot create kkbdpoll\n"); |
105 | thread_ready(t); |
105 | thread_ready(t); |
106 | } |
106 | } |
107 | } |
107 | } |
Line 124... | Line 124... | ||
124 | * |
124 | * |
125 | * @param t Microseconds to wait. |
125 | * @param t Microseconds to wait. |
126 | */ |
126 | */ |
127 | void asm_delay_loop(const uint32_t usec) |
127 | void asm_delay_loop(const uint32_t usec) |
128 | { |
128 | { |
129 | uint64_t stop = tick_read() + (uint64_t) usec * (uint64_t) CPU->arch.clock_frequency / 1000000; |
129 | uint64_t stop = tick_read() + (uint64_t) usec * (uint64_t) |
- | 130 | CPU->arch.clock_frequency / 1000000; |
|
130 | 131 | ||
131 | while (tick_read() < stop) |
132 | while (tick_read() < stop) |
132 | ; |
133 | ; |
133 | } |
134 | } |
134 | 135 |