Commit Graph

16 Commits

Author SHA1 Message Date
secXsQuared
f412efdbfd hmmm? 2016-08-29 13:06:57 -04:00
secXsQuared
ba7672dd00 Fixing stuff. Still broken 2016-08-28 02:14:22 -07:00
secXsQuared
e6bbba7b60 Still broken 2016-08-27 17:20:38 -07:00
secXsQuared
5a3d467dbd BROKEN 2016-08-26 22:13:54 -07:00
secXsQuared
4032174150 huh 2016-08-05 22:55:55 -07:00
secXsQuared
e797cc29c2 Ref MGR 2016-07-23 17:54:54 -07:00
secXsQuared
03d3d4ab70 Everything compiled again, with a lot of changes to the design of HAL.
Although a lot of things are not working yet. It's getting closer.
2016-07-08 20:01:33 -07:00
secXsQuared
f9b3df8b60 VMM half-done. PMM refactored. Haven't got a chance to touch the HAL yet. 2016-06-25 14:40:47 -07:00
secXsQuared
8da028f518 Eventually went with not using in-place linked list for PMM (Don't really want to mix up PMM and VMM).
So yeah, now keep trace of those physical pages on kernel heap, Windows does that, linux does that, I have to do that since there are more attributes(paged/non-paged) that the kernel requires.
Hmm finished PMM alpha and redefined all those PMM/VMM interfaces.
The code is still broken right now.
2016-06-25 00:25:54 -07:00
secXsQuared
be746b4f6f Figuring out PMM/VMM and ASM. 2016-06-24 18:47:29 -07:00
secXsQuared
6a971cc650 Implementing H-K interface according to the wiki. 2016-06-22 21:50:29 -07:00
secXsQuared
22ad3c25c2 Restructure kernel (separate modules to be shared + private) and defined/implemented more HAL interrupt APIs. 2016-06-15 00:29:46 -07:00
secXsQuared
b2254e207d Interrupt working (Except that I need to remap PIC).
1. Fix a stupid mistake in idt dispatch table (IDT_ENTRY_NUM instead of IDT_ENTRY_SIZE)!
2. Figured out that before enabling APIC, the PIC is not completely disabled/remapped. Took hours to debug why immediately after enabling interrupt, a double fault happens when executing "mov eax, 0". Turned out that PIC maps timer interrupt to int vet 8, which is double fault in the vector table. The double fault normally pushes an error code 0, the ISR is expecting the error code but the timer interrupt does not push an error code thereby screwing up the interrupt stack completely. The kernel runs normally after "sti" after changing the int 8 vector to just "iretq". (Remapping the PIC: http://wiki.osdev.org/I_Cant_Get_Interrupts_Working#I.27m_receiving_EXC9_instead_of_IRQ1_when_striking_a_key_.3F.21). Oh FML, hours wasted..
2016-06-13 23:33:31 -07:00
secXsQuared
bc49a854dd Set up interrupt dispatching
Set up APIC. Timer setup atrociously close.
Bochs keeps giving the god damn triple fault (IDT broken)??
2016-06-12 21:11:38 -07:00
secXsQuared
8d7590ace4 NOT WORKING 2016-06-10 21:16:51 -07:00
secXsQuared
e53e396556 [RUNNING] Structural and boot change:
1. Changed to multiboot2 complaint
2. Separated modules (hal, kernel, test, common)
3. Rewrite makefile/linker script/ grub.cfg to adapt changes.
2016-06-04 02:41:56 -07:00