Rev 591 | Rev 596 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 591 | Rev 594 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #include <func.h> |
38 | #include <func.h> |
| 39 | #include <macros.h> |
39 | #include <macros.h> |
| 40 | #include <debug.h> |
40 | #include <debug.h> |
| 41 | #include <symtab.h> |
41 | #include <symtab.h> |
| 42 | 42 | ||
| - | 43 | #include <mm/tlb_cmd.h> |
|
| - | 44 | ||
| 43 | #define MAX_CMDLINE 256 |
45 | #define MAX_CMDLINE 256 |
| 44 | 46 | ||
| 45 | /** Simple kernel console. |
47 | /** Simple kernel console. |
| 46 | * |
48 | * |
| 47 | * The console is realized by kernel thread kconsole. |
49 | * The console is realized by kernel thread kconsole. |
| Line 267... | Line 269... | ||
| 267 | 269 | ||
| 268 | spinlock_initialize(&halt_info.lock, "kconsole_halt"); |
270 | spinlock_initialize(&halt_info.lock, "kconsole_halt"); |
| 269 | link_initialize(&halt_info.link); |
271 | link_initialize(&halt_info.link); |
| 270 | if (!cmd_register(&halt_info)) |
272 | if (!cmd_register(&halt_info)) |
| 271 | panic("could not register command %s\n", halt_info.name); |
273 | panic("could not register command %s\n", halt_info.name); |
| - | 274 | ||
| - | 275 | spinlock_initialize(&desc_ptlb.lock, "kconsole_ptlb"); |
|
| - | 276 | link_initialize(&desc_ptlb.link); |
|
| - | 277 | if (!cmd_register(&desc_ptlb)) |
|
| - | 278 | panic("could not register command %s\n", desc_ptlb.name); |
|
| 272 | } |
279 | } |
| 273 | 280 | ||
| 274 | 281 | ||
| 275 | /** Register kconsole command. |
282 | /** Register kconsole command. |
| 276 | * |
283 | * |