Rev 1721 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1721 | Rev 1751 | ||
|---|---|---|---|
| Line 227... | Line 227... | ||
| 227 | 227 | ||
| 228 | active_console = KERNEL_CONSOLE; /* Set to kernel console */ |
228 | active_console = KERNEL_CONSOLE; /* Set to kernel console */ |
| 229 | vp_switch(0); |
229 | vp_switch(0); |
| 230 | } |
230 | } |
| 231 | 231 | ||
| 232 | - | ||
| - | 232 | /** Return x, where left <= x <= right && |a-x|==min(|a-x|) is smallest */ |
|
| 233 | static inline int limit(int a,int left, int right) |
233 | static inline int limit(int a,int left, int right) |
| 234 | { |
234 | { |
| 235 | if (a < left) |
235 | if (a < left) |
| 236 | a = left; |
236 | a = left; |
| 237 | if (a >= right) |
237 | if (a >= right) |