summaryrefslogtreecommitdiff
path: root/kernel/timer.s
AgeCommit message (Collapse)Author
2018-07-08Moved the 'ticks' variable from kmain.c to timer.s.Jake Mannens
Added the prototype for userspace_init() to sched.h removing the need to the extern declaration in kmain.c.
2018-06-23Re-wrote interrupt handling. Now, flush_idt only initializes IDT entriesJake Mannens
32-255. A separate routine in the new file traps.s initializes the first 32 entries with addresses pointing to exception handlers within said file. Modified the register_isr function to now accept a descriptor privilege level which it will assign to the modified IDT entry. Added a task state segment and corresponding entry to the GDT. The TSS will store the kernel's stack pointer and stack segment when switching to userspace. NOTE: The stack pointer MUST be saved manually before switching to userspace! Added the framework for a system call interface at interrupt vector 0x80 (128).
2018-06-19Added foundation code to initialize the PIT and create a 10ms jiffiesJake Mannens
counter.