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
133caddd
authored
Nov 08, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
stuff
parent
eea26fd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/idt.c
src/idt.c
View file @
133caddd
...
...
@@ -54,14 +54,14 @@ void default_handler(struct reg_state reg, uint32_t interrupt, uint32_t error, s
}*/
if
(
interrupt
<
32
)
stack
.
eip
+=
2
;
serial_writestring
(
"int caught "
);
char
f
[
20
];
serial_val
(
interrupt
);
serial_hexword
(
error
);
serial_writestring
(
" "
);
serial_hexword
(
stack
.
eip
);
serial_writestring
(
" "
);
serial_val
(
stack
.
cd
);
serial_val
(
stack
.
eflags
);
serial_writestring
(
"
\n
"
);
//
serial_writestring("int caught ");
//
char f[20];
//
serial_val(interrupt);
//
serial_hexword(error);serial_writestring(" ");
//
serial_hexword(stack.eip);serial_writestring(" ");
//
serial_val(stack.cd);
//
serial_val(stack.eflags);
//
serial_writestring("\n");
if
(
handlers
[
interrupt
]
!=
NULL
)
{
handlers
[
interrupt
](
error
);
...
...
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