Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
246a4b2b
authored
Oct 26, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Removed reliance on serial_hexword
parent
64f3eeb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
src/idt.c
src/io.c
src/idt.c
View file @
246a4b2b
...
@@ -57,8 +57,10 @@ void default_handler(struct reg_state reg, uint32_t interrupt, uint32_t error, s
...
@@ -57,8 +57,10 @@ void default_handler(struct reg_state reg, uint32_t interrupt, uint32_t error, s
serial_writestring
(
"int caught "
);
serial_writestring
(
"int caught "
);
char
f
[
20
];
char
f
[
20
];
serial_val
(
interrupt
);
serial_val
(
interrupt
);
serial_hexword
(
error
);
serial_writestring
(
" "
);
serial_val
(
error
);
serial_hexword
(
stack
.
eip
);
serial_writestring
(
" "
);
serial_val
(
stack
.
eip
);
//serial_hexword(error);serial_writestring(" ");
//serial_hexword(stack.eip);serial_writestring(" ");
//serial_val(stack.eip);
//serial_val(stack.eip);
serial_val
(
stack
.
cd
);
serial_val
(
stack
.
cd
);
serial_val
(
stack
.
eflags
);
serial_val
(
stack
.
eflags
);
...
...
src/io.c
View file @
246a4b2b
...
@@ -2,10 +2,16 @@
...
@@ -2,10 +2,16 @@
#include "pic.h"
#include "pic.h"
#include "serial.h"
#include "serial.h"
#include "idt.h"
#include "idt.h"
#include "string.h"
#define serial_val(i) itoa(i,f);serial_writestring(f);serial_writestring(" ");
void
kbd_irq
()
void
kbd_irq
()
{
{
serial_hexword
(
inb
(
0x60
));
char
f
[
20
];
//serial_hexword(inb(0x60));
serial_val
(
inb
(
0x60
));
serial_writestring
(
"
\n
"
);
pic_command
(
0
,
PIC_OCW2_EOI
);
pic_command
(
0
,
PIC_OCW2_EOI
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment