Commit Graph
482 Commits
Author SHA1 Message Date
josh db2814596b Move PIT test to test module 2023-11-25 21:01:46 -05:00
josh 8cfa7bc009 Add hulk.thread module 2023-11-25 20:58:11 -05:00
josh d100ab53a8 Add read_rflags() 2023-11-25 13:02:27 -05:00
josh 35e5aa2ee5 Add hulk.test module to test kernel functionality 2023-11-22 20:47:21 -05:00
josh cd9a3a7284 Rework List to allow removing nodes 2023-11-22 20:46:48 -05:00
josh 294500fb70 Squelch linker warning about a RWX segment 2023-11-21 12:13:29 -05:00
josh bb4404df23 Add suspend_interrupts() and resume_interrupts() 2023-11-21 11:36:22 -05:00
josh aa5ca83889 Disable the red zone
This fixes the interrupt handler from clobbering local variables.
2023-11-20 16:18:41 -05:00
josh f2839cdd0f Handle all APIC IRQ redirects specified in MADT 2023-11-07 17:19:56 -05:00
josh 31bf82e2ae Store all registers in interrupt stack frame
Do not clear console when printing interrupt stack frame
2023-11-02 16:32:42 -04:00
josh 4f9206af91 Build with debugging symbols 2023-11-02 11:54:08 -04:00
josh 2eec448653 Update gcc and binutils 2023-11-02 11:53:35 -04:00
josh 9932b92963 Change orange screen of death to red bar 2023-11-02 10:34:29 -04:00
josh 5d8343ed40 Preserve registers and align stack in interrupt handlers 2023-11-02 10:29:27 -04:00
josh 2fa4193517 Pass exception stack frame pointer to exception handler
Show exception stack frame contents on exception
2023-11-01 21:22:54 -04:00
josh 01c73f8474 Add check that PIT ISR is firing 2023-11-01 14:45:43 -04:00
josh 7264a31ff3 Rework scanning MADT table entries
Get I/O APIC address from MADT entry.
Add DEBUG flag for APIC.
Show number of CPUs found.
2023-10-31 13:29:23 -04:00
josh c0a00b528e Run in QEMU with 4 CPUs by default 2023-10-31 11:56:39 -04:00
josh 9f8a4ea100 Add hulk.time and msleep() 2023-10-26 16:18:26 -04:00
josh 6251fee3ff Store item in List rather than pointer to item 2023-10-25 21:28:27 -04:00
josh f5c6a35cef Move MCFG ACPI table processing from ACPI to PCI 2023-10-25 21:18:36 -04:00
josh e32282f6f0 Move MADT table processing from ACPI to APIC 2023-10-25 21:11:21 -04:00
josh 2b87792c67 Store ACPI table pointers in list 2023-10-25 19:13:36 -04:00
josh e480bd0ed0 Enable PIT ISR to count milliseconds 2023-10-25 12:02:44 -04:00
josh e357f2ba44 Initialize USB controllers from Usb instead of Pci 2023-10-24 10:44:48 -04:00
josh f8f9b72588 Store PCI addresses and types as 32-bit uints 2023-10-24 10:25:16 -04:00
josh d86bf47211 Store a List of discovered PCI devices 2023-10-24 08:49:11 -04:00
josh 757f8f8c65 Make A1.allocate() zero returned memory 2023-10-24 08:48:26 -04:00
josh 8303451929 Add List class 2023-10-24 08:48:00 -04:00
josh 1c6c922b45 Add Pci.Type struct 2023-10-22 21:30:36 -04:00
josh 7632445d43 Add console escape sequences to draw headings 2023-10-21 22:13:20 -04:00
josh 601ea50e4b Console: delay newline rendering until non newline character 2023-10-21 21:21:46 -04:00
josh 722494af44 Console: do not index nonexistent character codes 2023-10-21 21:04:18 -04:00
josh e1f38bd5ea Initialize RTC after APIC 2023-10-21 20:47:15 -04:00
josh bcf1bd3bde HELLO: Zero HULK BSS region after mapping it 2023-10-21 20:46:27 -04:00
josh f7dde241ad Split console into two pages 2023-10-21 20:15:11 -04:00
josh 8638840cd8 Add console header line 2023-10-21 17:08:45 -04:00
josh 4273c703e9 writef: split into writef() and writefv() 2023-10-21 16:45:41 -04:00
josh b2597fb5da Add hulk.ver module 2023-10-18 19:33:43 -04:00
josh 291ba2bc1c Remove xHCI TODO 2023-10-13 14:17:34 -04:00
josh 71bc3543a1 fontgen: show more error info for invalid character metrics 2023-09-26 12:00:22 -04:00
josh a87d24d417 Reduce kernel console font size slightly 2023-09-26 09:59:22 -04:00
josh 6fcc6da022 Remove APIC debug outputs 2023-09-24 11:03:21 -04:00
josh dc07fd0255 Document xHCI runtime registers and interrupter registers 2023-09-23 19:48:14 -04:00
josh eb0a4b2a4d Document xHCI port registers 2023-09-23 19:28:35 -04:00
josh 0ae3c6c96d Document xHCI operational registers 2023-09-23 11:59:20 -04:00
josh 4814b51daf Dump xHCI extended capabilities 2023-09-19 11:07:18 -04:00
josh 14bb3adf37 Document xHCI capability registers 2023-09-19 11:07:02 -04:00
josh cda45b205d Remove legacy PCI bus scanning 2023-09-17 16:13:37 -04:00
josh cfd42550fc Add struct definitions for all PCI header types 2023-09-17 15:22:58 -04:00