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
e6019cfd
authored
Oct 13, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added message back to PIC to signal end of int
parent
e03b9581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/pit.c
src/pit.c
View file @
e6019cfd
...
...
@@ -9,7 +9,7 @@ void pit_irq()
{
asm
volatile
(
"add %esp, 12; pushad"
);
_pit_ticks
++
;
//TODO: NEED TO SEND DONE MESSAGE BACK
pic_command
(
PIC_OCW2_EOI
,
0
);
asm
volatile
(
"popad; iretd"
);
}
...
...
@@ -67,7 +67,6 @@ void pit_start_counter(uint32_t frequency, uint8_t counter, uint8_t mode)
void
pit_init
();
{
//TODO: NEED TO SET INT 32 TO PIT IRQ HANDLER
install_ir
(
32
,
IDT_PR
|
IDT_32
,
0x8
,
pit_irq
);
_pit_is_init
=
true
;
}
...
...
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