mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Virtual consoles kinda work!
We now make three VirtualConsoles at boot: tty0, tty1, and tty2. We launch an instance of /bin/sh in each one. You switch between them with Alt+1/2/3 How very very cool :^)
This commit is contained in:
parent
68739dc43e
commit
7a7956a595
24 changed files with 251 additions and 103 deletions
|
@ -192,6 +192,8 @@ void exception_13_handler()
|
|||
EH_ENTRY(14);
|
||||
void exception_14_handler()
|
||||
{
|
||||
ASSERT(current);
|
||||
|
||||
dword faultAddress;
|
||||
asm ("movl %%cr2, %%eax":"=a"(faultAddress));
|
||||
|
||||
|
@ -249,7 +251,6 @@ void exception_14_handler()
|
|||
#define EH(i, msg) \
|
||||
static void _exception ## i () \
|
||||
{ \
|
||||
vga_set_attr(0x0a); \
|
||||
kprintf(msg"\n"); \
|
||||
DWORD cr0, cr2, cr3, cr4; \
|
||||
asm ("movl %%cr0, %%eax":"=a"(cr0)); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue