#define FOOLOS_MODULE_NAME "x86" #include "x86.h" #include "timer.h" #include "lib/int/stdint.h" #include "lib/logger/log.h" // // suffix (b, w, l, q for byte, word, dword, and qword). // void sleep(int i) { volatile uint64_t clock=timer_get_ticks(); // while(clock+i>task_system_clock) // { // log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"It is %d but I will sleep until %d...",task_system_clock,clock+i); for(int j=0;j