Commit Graph

  • c1ce1d76f9 Compile on i686. 4lDO2 2024-06-24 13:03:47 +02:00
  • 5b25e2cda7 Fix excp_handler deadlock. 4lDO2 2024-06-24 10:07:15 +02:00
  • b94904a660 Use correct addrsp when setting sighandler. 4lDO2 2024-06-23 23:17:26 +02:00
  • cc406804c0 Don't double-clear is_pending flag. 4lDO2 2024-06-23 16:50:55 +02:00
  • 35aa24800b Implement correct context sig unblocking behavior. 4lDO2 2024-06-23 14:28:36 +02:00
  • 93f0573b5d Use improved signal control struct defs. 4lDO2 2024-06-23 14:24:13 +02:00
  • d6e0eef065 Implement signal delivery code (untested). 4lDO2 2024-06-23 12:22:48 +02:00
  • 9b68d4de80 Fix add_ref(Shared) refcounting bug. 4lDO2 2024-06-23 00:35:58 +02:00
  • 7d5b2e6c21 Prevent infinite userspace crash loops. 4lDO2 2024-06-20 22:56:19 +02:00
  • 55fe58adf6 WIP: implement kill syscall prototype 4lDO2 2024-06-20 22:14:27 +02:00
  • 639ba74a7e Fix kernel compilation. 4lDO2 2024-06-19 12:34:58 +02:00
  • 295cc820e6 WIP: userspace signal handling 4lDO2 2024-06-18 16:58:28 +02:00
  • 67976e759e Switch to upstream syscall dependency. 4lDO2 2024-07-15 17:19:42 +02:00
  • 2ac60da18d Merge branch 'fix' into 'master' Jeremy Soller 2024-07-15 14:49:34 +00:00
  • 78eda3f7ed Merge branch 'patch-1' into 'master' Jeremy Soller 2024-07-15 14:48:05 +00:00
  • 198151a355 Make sure aarch64 kernel doesn't use any FP registers Andrey Turkin 2024-07-12 21:00:46 +03:00
  • 9c639af217 Fix debug assertion bug Andrey Turkin 2024-07-12 23:15:33 +03:00
  • 7c0995ee24 Revived tests Andrey Turkin 2024-07-11 23:41:22 +03:00
  • 1710f56e71 Merge branch 'fix_things' into 'master' Jeremy Soller 2024-07-12 12:36:19 +00:00
  • 0d96fe361a Merge branch 'fix_things' into 'master' Jeremy Soller 2024-07-12 12:35:57 +00:00
  • 2fc3923d46 Fix fbcon bjorn3 2024-07-12 12:05:31 +02:00
  • 6274b07674 Fix things I broke bjorn3 2024-07-12 11:58:12 +02:00
  • 130dd5c1ad Merge branch 'no_legacy_path' into 'master' Jeremy Soller 2024-07-11 23:32:35 +00:00
  • 97bbfc03cb Merge branch 'no_legacy_path' into 'master' Jeremy Soller 2024-07-11 23:31:57 +00:00
  • 51da6bfc88 Merge branch 'no_legacy_path' into 'master' Jeremy Soller 2024-07-11 23:31:23 +00:00
  • 9fe6d600f8 Merge branch 'no_legacy_path' into 'master' Jeremy Soller 2024-07-11 23:30:53 +00:00
  • 40adaa51e2 Merge branch 'no_legacy_path' into 'master' Jeremy Soller 2024-07-11 23:30:35 +00:00
  • fd8dabd1bc Use the new scheme format in most places bjorn3 2024-07-11 21:14:42 +02:00
  • 1e183ca4ba Use the new scheme format bjorn3 2024-07-11 21:09:53 +02:00
  • bafdb3b66a Use the new scheme format bjorn3 2024-07-11 21:08:12 +02:00
  • 3d03d9969e Use the new scheme format bjorn3 2024-07-11 21:04:08 +02:00
  • 88338f36f2 Use the new scheme format bjorn3 2024-07-11 21:02:40 +02:00
  • 21b2e90d50 Merge branch 'bug_fixes' into 'master' Jeremy Soller 2024-07-09 18:44:41 +00:00
  • 93d5ceb465 bug fixes ramla-i 2024-07-09 12:55:48 -04:00
  • 315ba323a4 Move sigchld test from EXPECT_NAMES to NAMES. 4lDO2 2024-07-09 15:42:33 +02:00
  • 44db740260 Update dependencies. 4lDO2 2024-07-05 16:54:48 +02:00
  • 77c9e53ee2 Fix sigchld test. 4lDO2 2024-07-04 15:09:33 +02:00
  • 284f51b47e Fix struct sigaction defintion. 4lDO2 2024-07-04 11:31:45 +02:00
  • cf390d6a52 Add SIGCHLD test. 4lDO2 2024-07-04 11:24:23 +02:00
  • b64b0ebe18 Handle kill and killpg EINTR. 4lDO2 2024-07-03 22:15:13 +02:00
  • 78247c8525 Pass signal correctly to SYS_KILL. 4lDO2 2024-07-03 16:59:09 +02:00
  • 4ee878c474 Always use fxsave, store 'YMM_UPPER' manually. 4lDO2 2024-07-03 13:48:59 +02:00
  • 2fe1d614f8 Fix aarch64 EINTR handler. 4lDO2 2024-07-02 17:48:46 +02:00
  • 5916b94707 Fix aarch64 fork_ret. 4lDO2 2024-07-02 16:54:08 +02:00
  • 618643b299 Work around aarch64 bootstrap crash. 4lDO2 2024-07-02 12:28:58 +02:00
  • 5277f2f640 Fix typo in currently_pending. 4lDO2 2024-07-02 12:19:41 +02:00
  • c9d22e484b Write draft aarch64 trampoline that compiles. 4lDO2 2024-07-02 11:53:29 +02:00
  • 8298417dee Implement sigpending on Redox. 4lDO2 2024-07-01 20:10:00 +02:00
  • c639fd37ba Implement sigaltstack. 4lDO2 2024-07-01 19:52:48 +02:00
  • 6d5d0eb61e Set initial sigactions to SIG_DFL and correct bits. 4lDO2 2024-07-01 17:35:19 +02:00
  • 6a3d247a90 Clear the signal bit in the handler. 4lDO2 2024-07-01 13:06:29 +02:00
  • a446ac1945 Fix (rare) stack corruption on x86_64. 4lDO2 2024-07-01 13:06:00 +02:00
  • c0e079132a AND rather than set sigmask inside signal. 4lDO2 2024-06-30 16:19:31 +02:00
  • 126daaa186 Improve i686 trampoline and fix PIC. 4lDO2 2024-06-30 15:18:22 +02:00
  • 5460ffc4c9 Jump to trampoline after SYS_{READ,WRITE} EINTR. 4lDO2 2024-06-29 15:58:09 +02:00
  • a166a1ebb2 For now, put ptr to pctl in TCB. 4lDO2 2024-06-29 14:55:47 +02:00
  • 63509e75ce Use new signal ABI where 'actions' are in shmem. 4lDO2 2024-06-29 14:01:38 +02:00
  • 71800d2b73 Fix spurious ign signal. 4lDO2 2024-06-28 22:19:47 +02:00
  • f28fe4a387 Use fetch_add instead of CAS when setting sigmask. 4lDO2 2024-06-27 21:20:56 +02:00
  • 39f45b0f67 Fix i686 trampoline. 4lDO2 2024-06-27 16:58:24 +02:00
  • 5b8d53ddd3 Fix x86_64 trampoline. 4lDO2 2024-06-27 14:00:17 +02:00
  • cda5f18946 Change interrupt stack format, emulate atomicity. 4lDO2 2024-06-27 11:42:40 +02:00
  • 9bb34901bf Adjust trampolines, only ip and 'archdep' regs are saved. 4lDO2 2024-06-27 11:16:01 +02:00
  • 568fc09277 Reset sighandler in fexec before switching addrsp. 4lDO2 2024-06-26 22:10:02 +02:00
  • 442954915b Fix x86_64 spurious signal jump condition. 4lDO2 2024-06-26 17:06:03 +02:00
  • 2d66993b3f Adapt to now-inverted signal mask (allowset). 4lDO2 2024-06-26 12:58:27 +02:00
  • 157d9fb2ba Set sigmask to sa_mask inside handler. 4lDO2 2024-06-24 21:48:25 +02:00
  • 630bf2ae3d Fix popf operand size. 4lDO2 2024-06-24 21:47:54 +02:00
  • 590ad70a9f Fix trampoline for i686. Ctrl-C now works. 4lDO2 2024-06-24 17:58:55 +02:00
  • c93b43b4b7 Build on i686, remove unnecessary #[no_mangle]. 4lDO2 2024-06-24 14:53:58 +02:00
  • 18b5c73b61 Compile on the other arches. 4lDO2 2024-06-24 12:29:44 +02:00
  • f37bb3cb16 Fix sigaction test on Linux, and rustfmt. 4lDO2 2024-06-24 11:59:39 +02:00
  • 0ea2b5d45f Fix compilation on Linux. 4lDO2 2024-06-24 11:00:28 +02:00
  • 3db425fef6 Correctly find signal number and check action. 4lDO2 2024-06-24 10:29:51 +02:00
  • 98a2a566d9 Almost succeed at repeatedly accepting signals. 4lDO2 2024-06-23 23:30:34 +02:00
  • d6588668e2 Fix pre-Rust part of trampoline!. 4lDO2 2024-06-23 17:14:26 +02:00
  • a1e1a159ae Initialize altstack properly. 4lDO2 2024-06-23 17:01:50 +02:00
  • a265c8b7a0 Reimplement libredox sig{procmask,action}. 4lDO2 2024-06-23 13:24:30 +02:00
  • b6eb7dcf0f Impl From<Errno> for syscall::Error. 4lDO2 2024-06-23 13:24:05 +02:00
  • c217745524 Mark sig{add,del}set unsafe, rather than unsound. 4lDO2 2024-06-23 13:22:38 +02:00
  • 8f66730d37 Set child sighandler *after* cloning address space. 4lDO2 2024-06-23 11:45:00 +02:00
  • 20284eb2b2 Fix rlct_clone. 4lDO2 2024-06-23 11:15:16 +02:00
  • 42c24dd755 Successfully run more userspace. 4lDO2 2024-06-23 10:42:52 +02:00
  • 7fcf5a1aca Ignore special bits when selecting signal. 4lDO2 2024-06-21 15:01:29 +02:00
  • a2ab86d253 Implement signal selection in asm, for SA_ONSTACK. 4lDO2 2024-06-21 14:52:27 +02:00
  • d45adade1d Remove obsolete proc usage, now reaches init. 4lDO2 2024-06-21 13:26:26 +02:00
  • 4e93f68324 Implement hack to ensure TCB exists in bootstrap. 4lDO2 2024-06-21 13:20:28 +02:00
  • a60710c597 Add missing signal arch offsets. 4lDO2 2024-06-20 22:43:25 +02:00
  • 58d1153536 Split part of TCB into generic-rt 4lDO2 2024-06-20 22:38:36 +02:00
  • 736a445af6 Use new proc control struct too. 4lDO2 2024-06-20 22:25:23 +02:00
  • edfe46c60b Write x86-64 signal trampoline asm stub. 4lDO2 2024-06-20 16:43:21 +02:00
  • 5177ca3926 Remove memoffset dependency. 4lDO2 2024-06-20 15:52:26 +02:00
  • 7d562920c2 Add sigaction boilerplate. 4lDO2 2024-06-20 14:21:11 +02:00
  • 98ac085c5d Add sigprocmask stub to rt. 4lDO2 2024-06-20 13:06:54 +02:00
  • e1d3bf475a Increase SIGRTMIN to 35. 4lDO2 2024-06-19 15:59:13 +02:00
  • 53ed7aae59 Move rlct_clone, sigprocmask, sigaction, to rt. 4lDO2 2024-06-19 14:44:12 +02:00
  • 0440df142a Patch redox-syscall to fork. 4lDO2 2024-06-19 13:20:47 +02:00
  • 4eb20628f3 Move some of signal config to redox-rt. 4lDO2 2024-06-19 13:18:08 +02:00
  • a800693266 Refactor: move redox-exec into redox-rt::proc. 4lDO2 2024-06-19 13:01:49 +02:00
  • e6f94291be Merge branch 'derick/fixes' into 'master' Jeremy Soller 2024-07-09 12:57:23 +00:00