summaryrefslogtreecommitdiff
path: root/src/sys/include
AgeCommit message (Collapse)Author
2025-09-15kern: os: Introduce support for OMAR initramfsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: vm: Add MI vm_map() functionIan Moffett
Introduce a machine independent mechanism to map multiple pages through the new vm_map() function Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: cpu: Add initial SMP startup codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15sys: limits: Add CPU_MAX limitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add initial scheduler skeletonIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15sys: Add sys/queue.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: lapic: Add LAPIC timer supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: intel: Add i8254 PIT driverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kernel/amd64: Add task state segment logicIan Moffett
This commit implements the task state segment and splits up processor initialization into two seperate stages. The cpu_conf() function is apart of the first stage and sets up things that should be going by the time the kernel is started / early init. The cpu_init() function runs later functions that initialize further platform specific subsystems. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: lapic: Initialize percore Local APICIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kernel/amd64: Move ioapic_read_madt() to acpi_subrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: ioapic: Add IRQ to vector routingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: Add I/O APIC initialization codeIan Moffett
This commit introduces the initial I/O APIC driver code that does basic initialization i.e., grabbing base address from MADT, masking each pin, etc. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add sys/mmio.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Initialize ACPI early on during bootIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add initial ACPI implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: acpi: Add ACPI table definitionsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: boot: Disable the i8259 chip on bootIan Moffett
To avoid interrupt conflicts on some machines with the I/O APIC, disable the legacy i8259 chip by default Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: Add exception handlersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add traprame related MD headersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern/amd64: Add interrupt descriptor table coreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15sys: Add sys/ascii.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: cons: Finish string writing logicIan Moffett
- Wrap on X overflow - Wrap on Y overflow - Keep track of max console width and height - Add console enable/disable control Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15sys: syslog: Wrap routines in _KERNEL guardIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: cons: Add console string writing routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: io: Implement initial console logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15os/amd64: Reduce coupling with VAS structureIan Moffett
This commit moves the VAS structure into a standard MD layer side and makes it accessible through a standard MI layer header. This indirection reduces coupling so that the codebase wont break if a name change or anything is needed. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15os/amd64: Make MMU header standard per archIan Moffett
Lunos's virtual memory system is split into two parts, the machine dependent MMU layer and the machine independent layer. The MMU side exposes a standard bridge header that allows the MI layer to interface with the MD layer. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: os: Add initial kalloc subsystemIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: Add TLSF allocator portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15kern: os: Add assert.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-15sys: Add sys/limits.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14sys: cdefs: Keep offsetof as-isIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern: Add sys/mman.h and generic prot flagsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern: vm: Implement page mapping and VASesIan Moffett
This commit implements an interface to allow other parts of Lunos to talk to the MMU: - Added the 'vas' structure as the virtual address space - Added MMU specific prot flags - Added mmu_map_single() to map pages - Added mmu_this_vas() to grab the current VAS ... Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern/amd64: Add Model Specific Register helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern: vm: Add virtual/physical address typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern/amd64: cpu: Add routine to get current coreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14sys: cpuvar: Routines are kernel specificIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14kern/amd64: vm: Add initial MMU skeleton logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-14os: vm: Add physical memory managerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13vm: Add initial vm/vm.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os: boot: Add boot variable informationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os/amd64: Add panic()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13sys: Add limine.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os/amd64: Add md_halt() to halt coreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os/amd64: Add md_intoff() and md_inton()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os: Add syslog loggingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os: Add lib/stdbool.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-09-13os: Add lib/stdarg.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>