Rev 1473 | Rev 1477 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1473 | Rev 1474 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | #include <panic.h> |
48 | #include <panic.h> |
49 | #include <interrupt.h> |
49 | #include <interrupt.h> |
50 | #include <arch/syscall.h> |
50 | #include <arch/syscall.h> |
51 | #include <arch/debugger.h> |
51 | #include <arch/debugger.h> |
52 | #include <syscall/syscall.h> |
52 | #include <syscall/syscall.h> |
- | 53 | #include <console/console.h> |
|
53 | 54 | ||
54 | 55 | ||
55 | /** Disable I/O on non-privileged levels |
56 | /** Disable I/O on non-privileged levels |
56 | * |
57 | * |
57 | * Clean IOPL(12,13) and NT(14) flags in EFLAGS register |
58 | * Clean IOPL(12,13) and NT(14) flags in EFLAGS register |
Line 183... | Line 184... | ||
183 | { |
184 | { |
184 | THREAD->arch.tls = addr; |
185 | THREAD->arch.tls = addr; |
185 | write_msr(AMD_MSR_FS, addr); |
186 | write_msr(AMD_MSR_FS, addr); |
186 | return 0; |
187 | return 0; |
187 | } |
188 | } |
- | 189 | ||
- | 190 | /** Acquire console back for kernel |
|
- | 191 | * |
|
- | 192 | */ |
|
- | 193 | void arch_grab_console(void) |
|
- | 194 | { |
|
- | 195 | i8042_grab(); |
|
- | 196 | } |
|
- | 197 | /** Return console to userspace |
|
- | 198 | * |
|
- | 199 | */ |
|
- | 200 | void arch_release_console(void) |
|
- | 201 | { |
|
- | 202 | i8042_release(); |
|
- | 203 | } |