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
b9a5b815
authored
Sep 28, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Cleanup
parent
faea7c7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
src/gdt.c
src/idt.c
src/gdt.c
View file @
b9a5b815
...
...
@@ -8,9 +8,6 @@ typedef struct{
static
gdt_desc
_gdt
[
MAX_GDT_DESC
];
static
gdtr
_gdtr
;
/*static void gdt_install () {
asm volatile("lgdt (%0)": : "p"(&_gdtr));
}*/
extern
void
gdt_install
(
gdtr
_gdtr
);
void
gdt_set_desc
(
uint32_t
i
,
uint64_t
base
,
uint64_t
limit
,
uint8_t
access
,
uint8_t
gran
)
...
...
@@ -24,7 +21,6 @@ void gdt_set_desc(uint32_t i, uint64_t base, uint64_t limit, uint8_t access, uin
_gdt
[
i
].
high_base
=
(
uint8_t
)((
base
>>
24
)
&
0xff
);
_gdt
[
i
].
lim
=
(
uint16_t
)(
limit
&
0xffff
);
//! set flags and grandularity bytes
_gdt
[
i
].
flags
=
access
;
_gdt
[
i
].
gran
=
(
uint8_t
)((
limit
>>
16
)
&
0x0f
);
_gdt
[
i
].
gran
|=
gran
&
0xf0
;
...
...
src/idt.c
View file @
b9a5b815
...
...
@@ -8,10 +8,6 @@ typedef struct{
static
idt_desc
_idt
[
MAX_IDT_INT
];
static
idtr
_idtr
;
/*static void idt_install () {
//TODO: VOODOO MAGIC
asm volatile ("lidt (%0)": : "p"(&(_idtr)));
}*/
extern
void
idt_install
(
idtr
_idtr
);
static
void
default_handler
()
{
//DEBUG OUTPUT MAYBE?
...
...
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