Import backup from 2004-01-18
This commit is contained in:
parent
7de4f94423
commit
10fd7102ca
18
idt.inc
18
idt.inc
@ -67,6 +67,9 @@ isr_label 48
|
||||
isr_label 49
|
||||
|
||||
isr_main:
|
||||
cmp eax, 0x30
|
||||
jz isr_syscall
|
||||
|
||||
pusha
|
||||
push ds
|
||||
push es
|
||||
@ -85,6 +88,21 @@ isr_main:
|
||||
iret
|
||||
|
||||
|
||||
isr_syscall:
|
||||
pop eax ;syscall function number
|
||||
pusha
|
||||
push ds
|
||||
push es
|
||||
|
||||
push ebx
|
||||
call _putc
|
||||
|
||||
pop es
|
||||
pop ds
|
||||
popa
|
||||
iret
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
14
kernel.c
14
kernel.c
@ -84,6 +84,20 @@ void k_init()
|
||||
printf("Root Directory: %s/\n", rootDevice->id);
|
||||
|
||||
|
||||
// int a;
|
||||
// byte *addr = 0;
|
||||
// for (a = 0; a < 2; a++)
|
||||
// {
|
||||
// byte *app = mm_palloc();
|
||||
// vmm_map1((dword)addr, (dword)app);
|
||||
// addr += 4096;
|
||||
// }
|
||||
|
||||
// addr = vfs_readFile("/bin/hash.hos");
|
||||
// memcpy(0, addr, 8192);
|
||||
// asm("call 0");
|
||||
|
||||
|
||||
dword key = 0;
|
||||
for (;;)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user