When jumpint from kernel(RING0) to process(RING1), the clock interrupt never happen however long i wait.
But in the middlel of kernel, I use sti and hlt to test clock interrupt then it does happen. I wanna know the reason why the clock interrupt never work in the middle of the process.
Thanks in advance.
This is my process code.
#include "type.h"
#include "const.h"
#include "intVector.h"
#include "important.h"
#include "process.h"
#include "prototype.h"
#include "task.h"
#include "global.h"
void delay(){
for (int i = 0; i < 1; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 1000; k++) {}
}
}
}
PUBLIC void TestA() { //0x05:0x30d01
int i = 0;
while (1) {
dispPos = 0;
dispStr("A");
dispInt(i++);
dispStr(".");
delay();
}
}