Go to the documentation of this file.
44 static unsigned char *videoBuffer = (
unsigned char *) 0xB8000;
54 char buf[16] = {
"a\n" };
57 kpanic(
"Error: Error creating mailbox: system\n");
64 x = (
int *) &myMsg.
data;
65 kprintf(
"Switching to term: [%i][%i]\n", *x, myMsg.
pid);
69 kprintf(
"Restarting the system in 5 seconds\n");
80 kprintf(
"system: backdoor opened\n");
92 biosCall(0x10, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0);
93 for (i = 0x0; i < 100; i++)
110 if (tmpTask != 0x0) {
111 if (tmpTask->
files[0] != 0x0)
120 videoBuffer[1] =
'c';
int mpi_fetchMessage(char *, mpi_message_t *)
void outportByte(unsigned int, unsigned char)
outputut one byte to specified port
void kfree(void *baseAddr)
void vmm_freeProcessPages(pidType pid)
int strcmp(const char *str1, const char *str2)
void kpanic(const char *fmt,...)
print panic message and halt system
void biosCall(int biosInt, int eax, int ebx, int ecx, int edx, int esi, int edi, int es, int ds)
unsigned char inportByte(unsigned int)
input one byte from specified port
tty_term * tty_find(uInt16)
kTask_t * schedFindTask(uInt32 id)
vitalsNode * systemVitals
int fclose(fileDescriptor_t *fd)
fileDescriptor_t * files[MAX_OFILES]
uInt32 execThread(void(*tproc)(void), uInt32 stack, char *arg)
int kprintf(const char *,...)
kTask_t * sched_getDelTask()
int mpi_createMbox(char *)