RossComputerGuy / stardustos

A modern Unix inspired operating system
GNU General Public License v3.0
15 stars 3 forks source link

[newland] processes not working #6

Open RossComputerGuy opened 4 years ago

RossComputerGuy commented 4 years ago

Values that aren't stored correctly:

RossComputerGuy commented 4 years ago

Issue may be caused by the proc_create function. Will look into it.

RossComputerGuy commented 4 years ago

Through more debugging, restoring the interrupts could be what is causing the issue.

RossComputerGuy commented 4 years ago

Issue still persists

RossComputerGuy commented 4 years ago

image Restoring the IRQ's is the result of the issue

RossComputerGuy commented 4 years ago

Currently gets stuck when loading the init program:

250         r = fs_node_read(&node, hdr.phoff + (hdr.phentsize * i), &prog, sizeof(elf_program_t));
(gdb) step
fs_node_read (nodeptr=0x121244, offset=244, buff=0x1211e4, size=32) at /home/ross/stardustos/newland/src/fs.c:29
29      fs_node_t* node = *nodeptr;
(gdb) finish
Run till exit from #0  fs_node_read (nodeptr=0x121244, offset=244, buff=0x1211e4, size=32) at /home/ross/stardustos/newland/src/fs.c:29