prog.cpp: In member function ‘void spin_lock::lock()’:
prog.cpp:11:18: error: ‘processor’ has not been declared
_isr_state = ( processor::core::read_flags() & ( 1 << 9 ) );
^
prog.cpp:12:3: error: ‘processor’ has not been declared
processor::core::disable_interrupts();
^
prog.cpp: In member function ‘void spin_lock::unlock()’:
prog.cpp:26:4: error: ‘processor’ has not been declared
processor::core::enable_interrupts();
^
Standard output is empty
The locking works fine in VMs like qemu / bochs but when run on real hardware it sometimes happens that the lock can't be acquired because it's still locked..