process_mem #10

Merged
xamidev merged 5 commits from process_mem into main 2026-02-21 19:57:31 +01:00
Owner

Mainly debug stuff: have a working stack trace, and panic.
To get symbol names & offsets, we link the kernel once, then export a symbol table (text file), then make an assembly symbol table out of it with some python. Then assemble and link it to the kernel.
So it's effectively linked 2 times.
Also set up the kernel stack because until now we were using the one provided by Limine.
However still get:

  1. Page Fault when using the keyboard (sending kbd interrupts) when the PS/2 driver hasn't initialized yet
  2. GP Fault when processes are accessing the framebuffer; maybe we should implement a spinlock for these sensible regions (serial, kbd, framebuffer, etc.) as there are only ONE way to access them, and there might be MULTIPLE processes running.
Mainly debug stuff: have a working stack trace, and panic. To get symbol names & offsets, we link the kernel once, then export a symbol table (text file), then make an assembly symbol table out of it with some python. Then assemble and link it to the kernel. So it's effectively linked 2 times. Also set up the kernel stack because until now we were using the one provided by Limine. However still get: 1) Page Fault when using the keyboard (sending kbd interrupts) when the PS/2 driver hasn't initialized yet 2) GP Fault when processes are accessing the framebuffer; maybe we should implement a spinlock for these sensible regions (serial, kbd, framebuffer, etc.) as there are only ONE way to access them, and there might be MULTIPLE processes running.
xamidev added 5 commits 2026-02-21 19:40:10 +01:00
xamidev merged commit 95c801b991 into main 2026-02-21 19:57:31 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xamidev/pepperOS#10