f3f40a465b
Kernel: Fix HDA amplifier step size calculation
...
step size is zero based, 0 means 250 mdB
2026-06-25 01:41:41 +03:00
d3130884b6
Kernel: Hack TTY to work as debug console
...
debug printing takes the debug lock, but TTY uses mutex for its lock
2026-06-25 01:41:41 +03:00
5a516a6130
ports/xbanan: Update to new version
2026-06-23 23:56:08 +03:00
689494db63
LibGUI/WindowServer: Allow querying global cursor position
2026-06-23 23:31:17 +03:00
1287c8e335
LibGUI: Cleanup packet creation
2026-06-23 23:30:42 +03:00
763a742f6d
WindowServer: Fix client fd leaks
2026-06-23 21:08:57 +03:00
4ad586552d
LibGUI/WindowServer: Send window move events
2026-06-23 20:52:12 +03:00
8bc93069be
Terminal: Fix foreground and background colors when inverted
...
I was not checking for inverted colors in a lot of places :P
2026-06-23 20:16:25 +03:00
160821869d
ports: Add libX{composite,cursor,damage,inerama} ports
2026-06-23 15:28:25 +03:00
aa1b1e1af9
ports: Add butterscotch port
2026-06-22 21:25:04 +03:00
e19414a64e
BuildSystem: Fix GCC compilation with new host GCC
...
Newer GCCs fail to compile GCC 15.2.0 because of how u8"" literals are
handled. This can be bypassed by compiling with -fno-char8_t
2026-06-07 03:20:50 +03:00
98fd86477a
Kernel: Remove allocations from path lookup
...
this bumped looped /usr/bin/ls stat performance from 750k->1100k/s
2026-05-26 19:10:16 +03:00
16a442f473
Kernel: Fix Thread::will_exit_because_of_signal
...
I was not checking whether the signal handler has been overwritten to
ignore the signal leading to infinite busy loops :)
2026-05-26 03:31:20 +03:00
becfa228fe
Kernel: fix signal handler block mask restoration
2026-05-26 03:31:20 +03:00
c0ce647c74
ports: Cleanup dependencies and configure flags
2026-05-26 03:31:20 +03:00
05250083b9
ports: Clenup toolchain files
2026-05-26 03:31:20 +03:00
bb170ba613
ports: Allow build scripts install to custom path
...
This will maybe allow packaging ports :)
2026-05-26 03:31:20 +03:00
c79e412215
resolver: Fix UB and resolve localhost
2026-05-25 03:19:20 +03:00
585e021c7f
Kernel: Don't panic when stack trace leads to GPF
...
if there is was a uncanonical address in stack trace we ended up in an
infinite recursive loop trying to print stack trace
2026-05-25 02:19:56 +03:00
43d03eb4a9
LibC: Add shm_open/shm_unlink
...
These can just open files in /tmp/shm. no need for anything fancier
2026-05-25 02:14:04 +03:00
2a6792b44a
LibC: Make mlock, munlock and madvice no-ops
...
These don't have to do anything as I don't swap processes to disk
2026-05-25 02:14:04 +03:00
954898b14d
Kernel: Fix file backed mmap syncing, my if condition was inverted
2026-05-25 02:14:04 +03:00
d266d2ca88
Kernel: Allow network interface ioctls on interfaces
...
previously it was only on the sockets
2026-05-25 02:14:04 +03:00
c72f2f9b31
LibC: Fix posix_spawn
...
signal was checking for NULL instead of SIG_ERR
there is no need to do post fork waiting in posix_spawn, we just have to
exit with 127 on error
2026-05-25 02:14:04 +03:00
62e2f4896a
LibC: reorder LOCK_SH and LOCK_EX
...
Some software im porting has static asserts for these :)
2026-05-25 02:14:04 +03:00
9ccdebcd96
LibC: Implement/fix mk{,o}stemp{,s}
2026-05-25 02:14:04 +03:00
fe533c2e62
LibC: Fix freopen to preserve file state :)
2026-05-25 02:14:04 +03:00
ee5c225954
LibC: Add __fseterr
...
This is used by some ports to not require internal FILE structure
2026-05-25 02:14:04 +03:00
8fccb74542
Kernel: Add indirect block cache to ext2 inode
...
This reduces indirect block lookup by a lot :)
2026-05-25 02:14:04 +03:00
bc8ecbd6fa
Kernel: Add directory entry cache for ext2 inodes
2026-05-25 02:14:04 +03:00
60484b286f
Kernel: Fix bugs in sys_pselect
...
I was not validating nfds passed from userspace. Also invalid fds are
supposed to return EBADF instead of ignoring those entries
2026-05-25 02:14:04 +03:00
12158d9208
Kernel: Add OpenFileDescriptorSet::get_max_open_fd
2026-05-21 14:59:35 +03:00
5c94c30e1b
Kernel: Use spinlocks instead of mutexes for RWLock
...
All the operations are super fast, just checking or changing few
integers, there is no need for a yielding mutex :^)
2026-05-21 02:17:34 +03:00
81d8ab3d79
Kernel: Remove completely unnecessary lock on file lookup
...
Mount point lookup already does locking internally, there is no need for
a lock for the whole duration of the lookup :D
2026-05-21 01:59:36 +03:00
6a58c716bd
Kernel: Make ext2 inode cache thread safe
2026-05-21 01:56:32 +03:00
c295af9bd5
BAN: Fix HashMaps with custom hashes and comparators
2026-05-20 23:10:25 +03:00
d5ee98708b
TaskBar: Show CPU load in task bar!
2026-05-20 19:14:21 +03:00
f6679eb4b5
Kernel: Expose CPU load information under /proc/cpu/<index>
2026-05-20 19:13:25 +03:00
ed3924722e
Kernel: Remove kernel CPU load printing
...
We still keep track of processor loads but the hacky printing is no
longer done in kernel space :)
2026-05-20 19:11:27 +03:00
4ef03eac97
Kernel: Allow ProcRO inode fail and pass arbitrary argument to it
2026-05-20 19:06:10 +03:00
7ce68b0488
LibGUI: Allow timeout with Window::wait_events
2026-05-20 19:03:11 +03:00
77796dd317
driver-install: implemented a simple installer
2026-05-20 17:52:19 +03:00
f1a72cc9da
Kernel: Implemented banos - a WIP C driver API
...
Banos is a stable WIP C driver API that is supposed to provide a simple
interface to interact with the kernel and load the modules dynamically.
It is WIP and atm this just implements module loading with a custom
banos_install syscall. Banos will not try to substitute parts of the
kernel instead it will just expose kernel functionality via a stable
BINARY API. Meaning binaries (should) remain forward and backward
compatible on a binary level.
Banos modules work similarly to those in linux, you expose symbols via
BANOS_EXPORT which allows you to export a name + addr paired symbol.
It puts it in the .banos-export section. Drivers provide metadata about
themselves in the REQUIRED .banos-driver section. Symbols are resolved
at runtime. The kernel exposes the driver functionality via the same
.banos-export export mechanism.
Banos modules are elf RELOCATABLE files (object files) which have
partial linking (only banos symbols should remain). Modules will
eventually define dependencies, will export symbols and will allow you
to build a complex object hierarchy.
This patch adds the banos_install syscall which takes in the driver
image to install and may only be executed by super users. The API
doesn't validate already loaded modules, as thats something the
userspace MAY choose to keep track of. Multi-instance functionality
shall be implemented via driver specific behaviuor (exposed in the dev
filesystem or some other means).
Modules are supposed to allow you to alter kernel behavior and extend
it, allowing you to create filesystems, drivers, networking
modifications, schedulers, probers, and more (hopefully) whilst
remaining binary compatible with any version of the kernel (again,
hopefully).
2026-05-20 17:52:19 +03:00
718379ce3b
Kernel: moved read/write_from_user out of Process
2026-05-20 17:52:19 +03:00
14aa28b043
Kernel: Handle TTY ioctls on all inodes not implementing it
...
This reduces debug spam while compiling software
2026-05-20 16:57:24 +03:00
6045726e41
Kernel: Optimize PageTable::unmap_range on x86_64
2026-05-20 16:16:44 +03:00
45e55d8907
LibC: Don't compare equal elements in qsort
...
This seemed to break supertuxkart which returned `less` in this case
2026-05-20 05:54:45 +03:00
e9d6431728
DynamicLoader: Fix dynamic TLS init order
2026-05-20 05:03:20 +03:00
aa8be130f9
DynamicLoader: Cleanup lazy PLT relocations
2026-05-20 05:02:48 +03:00
a19e6938eb
Kernel: Remove TTY keyboard thread
...
This was really hacky as it had no idea when the keyboard had events
and the blocking was just one millisecond sleeps :D
Now keyboard device checks if current tty is receiving input and if so
it forwards the events to the TTY.
2026-05-20 04:17:03 +03:00