4lDO2
5f62c30539
Update aarch64's child_hook.
2024-07-20 22:18:25 +02:00
4lDO2
f7d9f4e21e
Fix infinite loop & spurious signals for i686.
2024-07-20 19:41:04 +02:00
4lDO2
b71c34dd2d
Fix i686 fork.
2024-07-20 14:42:51 +02:00
4lDO2
35c9485701
WIP: Implement process signals for i686 trampoline.
2024-07-20 13:01:30 +02:00
4lDO2
232f6e9ade
Fix hardcoding of SUPPORTS_AVX.
2024-07-19 18:44:21 +02:00
4lDO2
44ec1676ae
Activate new threads' TCBs early.
2024-07-18 23:59:48 +02:00
4lDO2
6dd9332af2
WIP: Handle spurious signals properly.
...
These can occur in the following scenario:
- thread 1 has blocked signal A
- thread 2 has not blocked signal A
- signal A is sent to a process with thread 1 and thread 2
- thread 1 is simultaneously unblocking signal A, and thus jumps to the
trampoline
- thread 2 is awoken, but thread 1 won the "fetch_andn" to clear the
signal bit.
If the signal asm is jumped to automatically after each timer interrupt,
this scenario will also be relatively common due to that.
2024-07-18 23:59:48 +02:00
4lDO2
ff7eace6a7
Obtain offset of sig pctl more sanely.
2024-07-18 23:59:48 +02:00
4lDO2
4354bc94e8
Fix process-targeted signals.
2024-07-18 23:59:47 +02:00
4lDO2
15cdc4e0aa
Fix (modified) audiod.
2024-07-18 23:59:47 +02:00
4lDO2
d00ec085e1
WIP: Support receiving process-targeted signals.
2024-07-18 23:59:47 +02:00
4lDO2
c286dd6d33
Use new-thread proc API
2024-07-18 23:59:47 +02:00
4lDO2
dfb234079e
Fix signal fxrstor offset.
2024-07-16 14:46:09 +02:00
4lDO2
22cab7ca8d
Fix errors on non-x86_64.
2024-07-16 13:32:18 +02:00
4lDO2
4c20a9abb2
Enable syscall restart in futex_wait.
2024-07-16 11:55:06 +02:00
4lDO2
bcce7e18db
Implement SA_RESTART for read and write.
2024-07-15 23:24:41 +02:00
4lDO2
4ee878c474
Always use fxsave, store 'YMM_UPPER' manually.
2024-07-09 15:00:58 +02:00
4lDO2
2fe1d614f8
Fix aarch64 EINTR handler.
2024-07-09 15:00:58 +02:00
4lDO2
5916b94707
Fix aarch64 fork_ret.
2024-07-09 15:00:58 +02:00
4lDO2
c9d22e484b
Write draft aarch64 trampoline that compiles.
2024-07-09 15:00:58 +02:00
4lDO2
c639fd37ba
Implement sigaltstack.
2024-07-09 15:00:57 +02:00
4lDO2
a446ac1945
Fix (rare) stack corruption on x86_64.
2024-07-09 15:00:57 +02:00
4lDO2
126daaa186
Improve i686 trampoline and fix PIC.
2024-07-09 15:00:57 +02:00
4lDO2
5460ffc4c9
Jump to trampoline after SYS_{READ,WRITE} EINTR.
2024-07-09 15:00:57 +02:00
4lDO2
a166a1ebb2
For now, put ptr to pctl in TCB.
2024-07-09 15:00:57 +02:00
4lDO2
63509e75ce
Use new signal ABI where 'actions' are in shmem.
2024-07-09 15:00:56 +02:00
4lDO2
39f45b0f67
Fix i686 trampoline.
2024-07-09 15:00:56 +02:00
4lDO2
5b8d53ddd3
Fix x86_64 trampoline.
2024-07-09 15:00:56 +02:00
4lDO2
cda5f18946
Change interrupt stack format, emulate atomicity.
2024-07-09 15:00:56 +02:00
4lDO2
9bb34901bf
Adjust trampolines, only ip and 'archdep' regs are saved.
2024-07-09 15:00:56 +02:00
4lDO2
442954915b
Fix x86_64 spurious signal jump condition.
2024-07-09 15:00:56 +02:00
4lDO2
2d66993b3f
Adapt to now-inverted signal mask (allowset).
2024-07-09 15:00:55 +02:00
4lDO2
630bf2ae3d
Fix popf operand size.
2024-07-09 15:00:55 +02:00
4lDO2
590ad70a9f
Fix trampoline for i686. Ctrl-C now works.
2024-07-09 15:00:55 +02:00
4lDO2
c93b43b4b7
Build on i686, remove unnecessary #[no_mangle].
2024-07-09 15:00:55 +02:00
4lDO2
18b5c73b61
Compile on the other arches.
2024-07-09 15:00:55 +02:00
4lDO2
3db425fef6
Correctly find signal number and check action.
2024-07-09 15:00:54 +02:00
4lDO2
98a2a566d9
Almost succeed at repeatedly accepting signals.
2024-07-09 15:00:54 +02:00
4lDO2
d6588668e2
Fix pre-Rust part of trampoline!.
2024-07-09 15:00:54 +02:00
4lDO2
a1e1a159ae
Initialize altstack properly.
2024-07-09 15:00:54 +02:00
4lDO2
20284eb2b2
Fix rlct_clone.
2024-07-09 15:00:54 +02:00
4lDO2
42c24dd755
Successfully run more userspace.
2024-07-09 15:00:53 +02:00
4lDO2
7fcf5a1aca
Ignore special bits when selecting signal.
2024-07-09 15:00:53 +02:00
4lDO2
a2ab86d253
Implement signal selection in asm, for SA_ONSTACK.
2024-07-09 15:00:53 +02:00
4lDO2
4e93f68324
Implement hack to ensure TCB exists in bootstrap.
2024-07-09 15:00:53 +02:00
4lDO2
a60710c597
Add missing signal arch offsets.
2024-07-09 15:00:53 +02:00
4lDO2
58d1153536
Split part of TCB into generic-rt
2024-07-09 15:00:53 +02:00
4lDO2
edfe46c60b
Write x86-64 signal trampoline asm stub.
2024-07-09 15:00:52 +02:00
4lDO2
53ed7aae59
Move rlct_clone, sigprocmask, sigaction, to rt.
2024-07-09 15:00:52 +02:00
4lDO2
4eb20628f3
Move some of signal config to redox-rt.
2024-07-09 15:00:52 +02:00