Commit Graph

723 Commits

Author SHA1 Message Date
Matheus f04b7901e8 tmpfs: set default root mode to 0755 2024-09-14 17:34:24 -03:00
Matheus 1ad1e9fb3c apic: leave more time to calibrate 2024-09-13 20:03:53 -03:00
Matheus 31c7cf881c signal: add signal_returnmask and other fixes 2024-09-12 22:08:57 -03:00
Matheus cf3e58ffe1 elf: switch first and last page protection 2024-09-12 20:53:41 -03:00
Matheus 3c924116ee timer: fix overflow bug 2024-09-12 20:21:06 -03:00
Matheus 6e1343d5cc sleep: fix errno and check if remaining is null 2024-09-12 20:19:30 -03:00
Matheus 62b28a8e2a fs: check if directory is empty on unlink 2024-09-11 20:31:42 -03:00
Matheus 3037ad150b string: strerror 2024-09-11 20:30:39 -03:00
Matheus 84ce545cf6 vmmcache: make dirty page list FIFO 2024-09-11 19:45:35 -03:00
Matheus 9cb9e7b5d6 signal: remove debug print 2024-09-09 23:54:13 -03:00
Matheus 57b6d7c1a1 signal: fix sigaltstack 2024-09-09 23:43:51 -03:00
Matheus c086b9625a scheduler: fix issue with threads being lost 2024-09-09 21:24:02 -03:00
Matheus caec7d4daa sigsuspend: proper behaviour 2024-09-09 18:05:54 -03:00
Matheus 85cbdc05c1 syscalls: killthread 2024-09-09 18:03:49 -03:00
Matheus ca04805517 syscalls: sigpending 2024-09-08 23:14:18 -03:00
Matheus b1fff0e09f signal: fix bug 2024-09-08 18:52:34 -03:00
Matheus 9afe726bd7 syscalls: sigtimedwait 2024-09-08 15:42:08 -03:00
Matheus 909ef74597 signals: signal_wait 2024-09-08 15:41:54 -03:00
Matheus b6806c6065 event: support multiple attachments per event 2024-09-08 15:31:16 -03:00
Matheus cdcce89fa5 ps2: fix warning 2024-09-08 12:11:20 -03:00
Matheus f012085496 syscalls: sigsuspend 2024-09-08 10:57:21 -03:00
Matheus 42cfd8c5a5 kernel: remove old TODOs 2024-09-07 11:49:46 -03:00
Matheus c596244010 io: use isr->priv 2024-09-07 11:21:38 -03:00
Matheus d65c29197d ps2: improvements 2024-09-05 23:13:29 -03:00
Matheus 24be70ac29 signals: fix sigset 2024-09-05 18:23:13 -03:00
Matheus d65bec9c66 {set,get}itimer: fix logging and getitimer 2024-09-05 18:21:27 -03:00
Matheus 2e302a4d38 signal: way to signal all processes 2024-09-05 16:36:52 -03:00
Matheus c2e50547cc signal: do auth check 2024-09-05 16:24:18 -03:00
Matheus ee254a81e9 vfs: vfs_iscacheable 2024-09-04 21:33:59 -03:00
Matheus 062b7a4ef1 ext2: sparse file rw support 2024-09-04 18:43:42 -03:00
Matheus e75aab367d mmap: check if mapping a character device is actually possible 2024-09-03 18:41:56 -03:00
Matheus af92e8eb87 pipefs: remove unescessary TODO 2024-09-03 17:12:31 -03:00
Matheus d9131dc162 pci: msi support, switch to use PCI_{READ,WRITE}* macros 2024-09-02 19:47:21 -03:00
Matheus d81c2fdc9d waitpid: _WALL 2024-09-01 23:47:42 -03:00
Matheus 6193310f21 tty: misc changes 2024-09-01 23:38:34 -03:00
Matheus d42572b041 fs: fix fifo 2024-09-01 22:52:31 -03:00
Matheus 5793dda4d9 acpi: /dev/acpi 2024-09-01 21:41:08 -03:00
Matheus 65edcf0417 spinlock: helpers for ipl 2024-09-01 21:40:40 -03:00
Matheus 443295e279 kernel: misc changes 2024-09-01 20:38:13 -03:00
Matheus 75def3edfa Merge pull request #8 from d-tatianin/uacpi-integration
uACPI integration
2024-09-01 19:32:10 -03:00
Matheus 9be6ff345c pseudodevices: handle seek 2024-09-01 19:05:15 -03:00
8infy db55f99e23 Integrate uACPI & remove own ACPI parsing code
This commit adds uACPI as a submodule and removes all handwritten table
parsing code as well as struct definitions, since they now work via
uACPI. There's also now an ability to shut down by using the power
button.
2024-09-01 23:12:44 +03:00
8infy 476d4bad74 io: add outw & inw helpers 2024-09-01 23:12:44 +03:00
8infy 1042c1b1b0 time: introduce a new timespec_ns helper
This just returns the total number of elapsed nanoseconds given a
timespec struct.
2024-09-01 23:12:44 +03:00
8infy f306edb5ec semaphore: introduce a semaphore_reset helper
This simply clears the internal counter of a semaphore.
2024-09-01 23:12:44 +03:00
8infy 7136e96fdb spinlock: introduce helpers that clear & restore interrupts
These are just wrappers around acquire/release that clear and restore
interrupts respectively.
2024-09-01 23:12:44 +03:00
8infy f93470be2a mutex: introduce a MUTEX_ACQUIRE_TIMED helper
This is just based on the previously added semaphore_timedwait.
2024-09-01 19:40:21 +03:00
8infy 7e3922c7ad semaphore: add a new semaphore_timedwait helper
This is the same as semaphore_wait except it allows for the acquire
attempt to time out after a given period of time.
2024-09-01 19:39:25 +03:00
8infy 0854d08020 interrupt: add a new 'priv' field
This field is needed for interrupt handlers that need context in order
to know what to do.
2024-09-01 19:37:22 +03:00
8infy 6154318ab3 kernel: add a helper to retrieve the bsp CPU
This is useful to be able to e.g. set affinity for the BSP CPU.
2024-09-01 19:37:09 +03:00