removed interrupt enable/disable from critical app section

main
Simon 5 months ago
parent deac8bfb8c
commit 00c6f9c943

@ -34,7 +34,6 @@ void activeWaitDelay(uint64_t cycles) {
void Application::action() { // NOLINT
uint16_t cnt = 0;
while (1) {
Core::Interrupt::disable();
koutlock.lock();
while(text[cnt++] != '\n'){
kout << text[cnt-1];
@ -46,6 +45,5 @@ void Application::action() { // NOLINT
if(cnt >= sizeof(text)-1)
cnt=0;
Core::Interrupt::enable();
}
}

Loading…
Cancel
Save