26 Commits (main)

Author SHA1 Message Date
anna f8a85a1541
happy new year 2022 uwu
May it be slightly less exhausting than 2021.
2 years ago
anna 56767c59ed
x86/ktrace: improve traceability 2 years ago
anna c6c92ac39f
x86/trap: fix trap frame layout 2 years ago
anna 2e32e299d2
mm: rewrite slab allocator
This is the final part of the major mm subsystem
refactor (for now).  The new and improved slab
allocator can do *proper* poisoning, with pretty
accurate out-of-bounds and use-after-free
detection.
vm_page_t has also been restructured; its flags
and order are now combined into one atomic field.
3 years ago
anna 36d53093d4
ktrace: don't unwind past ISR entry points 3 years ago
anna 7f92690f84
panic: print stack trace when panicking 3 years ago
anna 5a5135f416
update license terms
As of now, everything except the code imported
from FreeBSD is proprietary.  Of course, it won't
be like this for long, only until we have decided
which license we like to use.  The rationale is
that releasing everything under a copyleft license
later is always easier than doing so immediately
and then changing it afterwards.
Naturally, any changes made before this commit are
still subject to the terms of the CNPL.
3 years ago
anna 52ac282ac8
x86: move common setup checks to shared file
This should also kind of fix the build.
I don't know whether that's actually the case
because i haven't tried tho lmao.
3 years ago
anna 24ae60225f
amd64: add base 64-bit support files
This has been brewing for quite some time now, and
it still is nowhere near finished, but at least it
compiles now.  A lot has changed, and it's still
quite messy (i386 is almost certainly broken now,
i haven't even checked)
3 years ago
anna 14630c86bf
x86: remove unnecessary standalone port functions 3 years ago
anna 03f31df67f
x86: better separation for i386 specific code
That's it, nothing major is gonna happen anymore
until i get amd64 support working and deprecate
the entire i386 branch.  32-bit just adds so many
extra complications to memory management that i
don't want to waste any more energy on this
platform which is obsolete anyway.
3 years ago
anna 24c6e9504d
add kernel panic utility
This also includes some minor rearrangements in
terms of which header files define what.
3 years ago
anna c36b03d97c
mutex: avoid wait queue lock if possible
This also tidies up the atomic operations a little
and adds a new atom_cmp_xchg() as well as the same
APIs for longs and pointers.
3 years ago
anna 45ab27e738
x86/atom: add pause in spin loops 3 years ago
anna d464135ff4
x86: prevent IRQs from firing during init 3 years ago
anna 3fee893f21
x86: begin preparations for amd64 support
This is a huge commit, but it mainly just moves
some files around and doesn't change their
contents much.
A lot of stuff works the same on amd64 as it does
on i386, so i'm moving the parts that are specific
to the latter into separate subdirectories while
the rest can be shared with the amd64 codebase.
3 years ago
anna 4e770a6e58
x86/port: add delay wrappers for x86_io_wait() 3 years ago
anna 6865864444
x86/atom: use neg instead of not/inc
The x86 apparently has a dedicated instruction for
finding the 2's complement.
3 years ago
anna ea89961ed2
x86/atom: use correct names in asm, improve docs 3 years ago
anna 582758e868
x86: add atomic primitives 3 years ago
anna b2fccf1ecd
sched: add base for scheduling and task switching 3 years ago
anna 4679b7cee5
x86: add irq support 3 years ago
anna 89f3393b8b
x86: move page fault handler to where it belongs 3 years ago
anna bc917d8651
x86: inline I/O port functions 3 years ago
anna d69fd0d2aa
x86: refactor traps, add register dump support 3 years ago
anna 613c28a965
x86: add basic interrupt support
This commit also fixes the fun little size bug in
segment.S where i subtracted the end from the
start address of the GDT instead of the other way
round which resulted in a gigantic overflow :)
3 years ago