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
8912a38a
authored
Oct 14, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Disable GCC optimization in pic and pit
parent
99915182
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
src/pic.c
src/pit.c
src/pic.c
View file @
8912a38a
#include "pic.h"
#include "pic.h"
#include "asm.h"
#include "asm.h"
#pragma GCC push_options
#pragma GCC optimize ("0")
uint8_t
pic_read
(
uint16_t
pic
)
uint8_t
pic_read
(
uint16_t
pic
)
{
{
if
(
pic
>
1
)
if
(
pic
>
1
)
...
@@ -59,3 +62,4 @@ void pic_init(uint8_t base0, uint8_t base1)
...
@@ -59,3 +62,4 @@ void pic_init(uint8_t base0, uint8_t base1)
pic_write
(
0
,
icw
);
pic_write
(
0
,
icw
);
pic_write
(
1
,
icw
);
pic_write
(
1
,
icw
);
}
}
#pragma GCC pop_options
src/pit.c
View file @
8912a38a
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
#include "idt.h"
#include "idt.h"
#include "asm.h"
#include "asm.h"
#pragma GCC push_options
#pragma GCC optimize ("0")
static
volatile
uint32_t
_pit_ticks
=
0
;
static
volatile
uint32_t
_pit_ticks
=
0
;
static
bool
_pit_is_init
=
false
;
static
bool
_pit_is_init
=
false
;
...
@@ -76,3 +79,4 @@ bool pit_is_init()
...
@@ -76,3 +79,4 @@ bool pit_is_init()
{
{
return
_pit_is_init
;
return
_pit_is_init
;
}
}
#pragma GCC pop_options
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