Commit 8912a38a by malcolm

Disable GCC optimization in pic and pit

parent 99915182
Showing with 8 additions and 0 deletions
#include "pic.h"
#include "asm.h"
#pragma GCC push_options
#pragma GCC optimize ("0")
uint8_t pic_read(uint16_t pic)
{
if(pic>1)
......@@ -59,3 +62,4 @@ void pic_init(uint8_t base0, uint8_t base1)
pic_write(0, icw);
pic_write(1, icw);
}
#pragma GCC pop_options
......@@ -3,6 +3,9 @@
#include "idt.h"
#include "asm.h"
#pragma GCC push_options
#pragma GCC optimize ("0")
static volatile uint32_t _pit_ticks = 0;
static bool _pit_is_init = false;
......@@ -76,3 +79,4 @@ bool pit_is_init()
{
return _pit_is_init;
}
#pragma GCC pop_options
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment