Commit Graph

52 Commits

Author SHA1 Message Date
Mark bfcc6d7bdf Add phys init 2019-10-12 13:57:32 +03:00
Mark 6297d1bfb2 Bring old code here 2019-10-12 13:40:48 +03:00
Mark 48d47dea94 Now with userspace 2019-10-11 21:16:58 +03:00
Mark 4fcda2bc68 Make gdt per-cpu 2019-10-11 20:46:38 +03:00
Mark 09bb6c4be7 Add _irqsave variant of spinlocks 2019-10-11 19:55:31 +03:00
Mark 3e63a77c9f Add testing sched with idle tasks 2019-10-11 19:32:41 +03:00
Mark 0e287e59bd Add %gs/cpu offsets to asm headers 2019-10-11 16:20:49 +03:00
Mark 31e8fd698e Add per-cpu tick counters 2019-10-11 14:23:10 +03:00
Mark 2c4854e23f Move struct cpu to cpu.h 2019-10-11 14:09:41 +03:00
Mark 416cad5d18 Move SMP init to smp.c, clean up Local APIC 2019-10-11 14:02:04 +03:00
Mark 55aa020738 [smp-broken] Add timer initialization 2019-10-10 20:08:23 +03:00
Mark 9ef897d7b9 Add testing spinlock 2019-10-10 19:29:05 +03:00
Mark 75d48ffdbc Add support for I/O APIC with testing kb mapping 2019-10-10 16:40:19 +03:00
Mark cb01e8f8da Move timer init outside the APIC.c 2019-10-10 15:34:58 +03:00
Mark 84497ba98e Add IRQ tracing, fix incorrent LAPIC ID code 2019-10-10 13:50:25 +03:00
Mark 2e320b5974 Split IRQ handling macros 2019-10-10 11:50:04 +03:00
Mark 1288561b0c Added 0xB8000 console for testing 2019-10-10 10:34:38 +03:00
Mark 992e08a93a Added AP initialization code 2019-10-09 23:45:19 +03:00
Mark c3cc760b2c Working LAPIC timer 2019-10-09 18:24:28 +03:00
Mark c345c3db26 Restore headers 2019-10-08 12:04:46 +03:00
Mark 71eeb5d282 Remove everything 2019-10-04 16:23:18 +03:00
Mark d0c709f772 Testing tty0 2019-10-02 19:19:20 +03:00
Mark dff06deb0f Seems like the problem with syscall/IF is fixed 2019-10-01 17:28:27 +03:00
Mark 24ff3737d4 [amd64] Elf loading kinda works 2019-10-01 16:18:09 +03:00
Mark dd1808b157 Add tarfs/ram-based initrd with file reading 2019-10-01 14:30:53 +03:00
Mark 12fb906ccc [amd64] Fixed problem with invalid upper mapping 2019-10-01 12:37:27 +03:00
Mark f4c3fb30b7 [amd64] Move kidle init to a function 2019-09-30 12:10:33 +03:00
Mark 93516ee40f Integrate vfs code into the kernel (just make it build yet) 2019-09-30 11:47:51 +03:00
Mark a71a024348 Add size pretty-printing 2019-09-30 10:39:38 +03:00
Mark b0b7667ec3 [amd64] Add initrd loading support 2019-09-24 18:15:17 +03:00
Mark 131f6963ab Add syscall description file 2019-09-23 12:21:57 +03:00
Mark 789a3ee1a3 [amd64] Move arch/amd64 -> sys/amd64 2019-09-23 11:40:44 +03:00
Mark f6c29e3414 [amd64] Implement kernelspace mm_space_t cloning 2019-09-22 12:06:59 +03:00
Mark 8843ff38aa Add systick counter 2019-09-20 23:20:42 +03:00
Mark 5c7e918460 Proper kernel [kidle] thread 2019-09-20 23:07:20 +03:00
Mark edfac823c7 [amd64] Userspace TSS/multithreading 2019-09-20 21:12:13 +03:00
Mark 49928b0a2b Add sys/assert.h 2019-09-20 14:14:38 +03:00
Mark b097abd8c2 [amd64] Kernelspace thread preemption 2019-09-20 13:43:58 +03:00
Mark becf1ccc54 [amd64] amd64 vmalloc/vmfree, slight changes to map.c 2019-09-19 18:52:15 +03:00
Mark 61f9ebbdae Add sys/types.h impl 2019-09-18 23:26:47 +03:00
Mark fe71e36814 [amd64] Use cross-compiler toolchain instead 2019-09-18 23:22:09 +03:00
Mark 5e54ed23b2 Fix modeline for vmalloc.h 2019-09-18 17:32:00 +03:00
Mark c1c00e3285 [doc] Add spec for vmalloc, add file headers 2019-09-18 17:30:53 +03:00
Mark 07d158f2a6 [doc] Docs on heap 2019-09-18 16:23:11 +03:00
Mark b24297d248 [amd64] Add kernel heap 2019-09-18 15:34:59 +03:00
Mark 70e5b17753 Add heap specification header 2019-09-18 12:54:49 +03:00
Mark a5c71af69c [amd64] Get memory map/GRUB info from loader 2019-09-17 16:37:03 +03:00
Mark ec6005054d [amd64] added HPET implementation 2019-09-17 14:38:17 +03:00
Mark c659189a76 [acpi] Add support for ACPI FADT/HPET location 2019-09-16 16:10:09 +03:00
Mark 51e0ac1374 [amd64] timer configuration 2019-09-16 13:57:53 +03:00