Commit Graph

260 Commits

Author SHA1 Message Date
Andrey Turkin 5d37073bd4 Complete RISC-V64 support 2024-09-29 16:52:54 +03:00
4lDO2 c910533bcb Remove SYS_UMASK.
Now that all POSIX open-related calls go through relibc, this value can
be downgraded to a (process-local) global variable in userspace.
2024-09-25 19:50:45 +02:00
Kamil Koczurek 909f95f349 Fix panic in dirent Buffer::split_at 2024-09-25 12:38:52 +02:00
4lDO2 c2c69e6282 Fix cargo test 2024-09-23 21:04:56 +02:00
4lDO2 af8865416b Add sender_infos for idempotent signals. 2024-09-23 21:03:55 +02:00
4lDO2 984f9cf714 Add RtSigInfo. 2024-09-23 21:03:55 +02:00
4lDO2 b32e679437 Add syscalls for an initial in-kernel rtsig impl. 2024-09-23 21:03:55 +02:00
4lDO2 7b834cb3d5 Add minimal realtime sig constants. 2024-09-23 21:03:52 +02:00
4lDO2 e4cc6bfcd5 Make arch module available on nonredox.
This both reduces IDE confusion, and allows compiling the kernel for
host, in order to run unit tests.
2024-09-14 10:57:42 +02:00
4lDO2 4d159ce1c7 WIP: Add next_opaque_id 2024-09-10 09:10:16 +02:00
4lDO2 c043410366 Document (sub)Buffer OOB write ability. 2024-09-09 11:14:57 +02:00
4lDO2 99d5ea8edf Make sure unused header bytes are cleared. 2024-09-09 11:04:21 +02:00
4lDO2 25162a0a08 Future-proof dirent interface. 2024-09-08 22:22:14 +02:00
4lDO2 eefe3c2e3c Add SYS_GETDENTS 2024-09-08 22:22:13 +02:00
4lDO2 227f7fd487 Convert repr(packed) to repr(C, packed).
This is required by crates like bytemuck.
2024-09-08 20:46:07 +02:00
4lDO2 1d098c4e1d Rustfmt. 2024-09-08 20:32:32 +02:00
4lDO2 99f49db824 Also read pctl in currently_pending_unblocked. 2024-07-17 17:30:08 +02:00
4lDO2 387f1c3326 Check SA_NOCLDSTOP in sig_will_ign. 2024-07-04 15:10:15 +02:00
4lDO2 f0483e3b33 Fix i686 CAS. 2024-07-03 13:47:00 +02:00
4lDO2 a8dfcdf7df Add FakeThread test abstraction. 2024-07-01 13:09:45 +02:00
4lDO2 9f59be32eb Add loom test, and move signal ABI to separate mod. 2024-06-30 12:01:04 +02:00
4lDO2 0bf7b6e73b Put sigaction-like struct in shmem. 2024-06-29 13:54:02 +02:00
4lDO2 87b8ac6581 Add currently_pending_unblocked. 2024-06-28 16:40:01 +02:00
4lDO2 9609c7bc26 Implement CAS-based 64-bit fetch_add on i686. 2024-06-27 21:29:22 +02:00
4lDO2 bda8fe89c6 Reduce saved sig registers to ip and 'archdep'. 2024-06-27 11:13:49 +02:00
4lDO2 bf01feb121 Add lock prefix to cmpxchg8b :) 2024-06-26 12:50:28 +02:00
4lDO2 b30d93aed0 Re-document control word mask as 'unmask'. 2024-06-25 15:10:54 +02:00
4lDO2 d9a6e334e0 Fix cmpxchg8b invocation. 2024-06-25 15:10:54 +02:00
4lDO2 6345199629 Fix i686. 2024-06-25 15:10:54 +02:00
4lDO2 0929c6500c Implement AtomicU64 for i686 using cmpxchg8b. 2024-06-25 15:10:54 +02:00
4lDO2 47c186630e Improve signal data structure defs. 2024-06-25 15:10:54 +02:00
4lDO2 0c1162979a Add preliminary nocldstop signal bit. 2024-06-25 15:10:54 +02:00
4lDO2 0b2a05ee1f Add sig proc control struct. 2024-06-25 15:10:54 +02:00
4lDO2 e154b74151 Add sig_bit. 2024-06-25 15:10:53 +02:00
4lDO2 b7d65e6b9d Add saved_rflags, some other unrelated flags. 2024-06-25 15:10:53 +02:00
4lDO2 2f944328e5 Remove unused defs, add 'inhibit' sigcontrol flag. 2024-06-25 15:10:53 +02:00
4lDO2 ffbef13397 Remove SignalStack, add Sigcontrol struct. 2024-06-25 15:10:53 +02:00
4lDO2 bd79228c7e Remove sig{procmask,action,return}. 2024-06-25 15:10:53 +02:00
4lDO2 13a0b9b5d5 Change SetSighandlerData. 2024-06-25 15:10:53 +02:00
4lDO2 0a83083aca Remove integration tests from CI.
This made sense when the syscall ABI was stable, but the syscall CI has
been failing for years by now. It's better to have a minimal CI
enforcing unit tests (todo) pass and all arches compile. All integration
tests should instead be done in acid.
2024-06-25 13:07:56 +02:00
Jacob Lorentzon ef099bdd2e Improved scheme protocol with offset+flags as read/write args 2024-06-14 11:18:10 +00:00
4lDO2 3e9d68c6b2 Fix compilation for nonredox. 2024-03-17 18:09:50 +01:00
4lDO2 7163519226 Implement Clone and Copy for Error. 2024-03-12 17:15:36 +01:00
4lDO2 ba54545696 Add SetSighandlerData. 2024-03-12 17:15:36 +01:00
4lDO2 74f2e81992 Use 64-bit masks in sigprocmask. 2024-03-12 17:15:36 +01:00
4lDO2 523a210364 Expand SignalStack struct. 2024-03-12 17:15:20 +01:00
4lDO2 0c464e7421 Add SignalStack, shrink sa_mask. 2024-03-12 17:15:20 +01:00
4lDO2 0100632a4b Add KSMSG_CANCEL. 2024-03-12 16:48:52 +01:00
4lDO2 612dceed00 Remove obsolete tests for fexec and clone. 2024-03-12 16:47:10 +01:00
4lDO2 5948affdd5 Remove SYS_PHYSMAP. 2023-12-09 12:20:36 +01:00