格式化输入
void syscallRead(struct StackFrame *sf) {
switch(sf->ecx) {
case STD_IN:
if (dev[STD_IN].state == 1)
syscallReadStdIn(sf);
break; // for STD_IN
default:
break;
}
}extern uint32_t keyBuffer[MAX_KEYBUFFER_SIZE];
extern int bufferHead;
extern int bufferTail;Last updated