jD91mZM2
145c1898be
Merge branch 'master' into global-asm
2020-07-15 12:05:34 +02:00
jD91mZM2
3bb234009a
WIP: Ensure clone_ret correctness
2020-07-15 11:43:17 +02:00
Jeremy Soller
93303af931
Merge branch 'catch-kernel-signal' into 'master'
...
Catch kernel signal
See merge request redox-os/kernel!135
2020-07-14 12:53:46 +00:00
Jeremy Soller
6b2302f92e
Merge branch 'paging-packed-use-unsafe' into 'master'
...
Wrap borrows of page table entries in unsafe
See merge request redox-os/kernel!126
2020-07-14 12:53:21 +00:00
jD91mZM2
ca3ddcdeca
Add TODOs for mapping PTI properly
...
I think we need to reimplement these functions in assembly :(
2020-07-14 09:14:16 +02:00
jD91mZM2
701c31cee0
Fix PTI compilation
...
It's broken on master anyway
2020-07-13 15:49:37 +02:00
jD91mZM2
5927743ff8
fixup! WIP: Rewrite interrupts as global assembly
2020-07-13 15:25:15 +02:00
jD91mZM2
fbdfcd2ba0
WIP: Rewrite interrupts as global assembly
...
Because the way we were using inline assembly was technically incorrect
and breaking the laws of rust
This *finally* compiles. That doesn't mean it works!
2020-07-11 16:15:25 +02:00
bjorn3
7b76ab3356
Don't panic on mprotect for unmapped pages
2020-07-09 11:03:02 +02:00
jD91mZM2
56f55a3b97
Always save proccess registers
...
Not sure if this is going to be required, and I'm not sure if this will
hurt performance, y'know, *always* doing this.
2020-07-08 11:47:12 +02:00
jD91mZM2
103ed1b17f
Make interrupt stack readable on kernel signals
2020-07-08 11:44:04 +02:00
jD91mZM2
039f7f5c83
Simplify EXEC catching
...
Instead of having a separate flag, let's reuse STOP_SINGLESTEP :)
I wasn't thinking enough when making this flag!
2020-07-07 14:16:42 +02:00
jD91mZM2
cdcb34486b
Keep singlestep across signals
2020-07-07 13:32:10 +02:00
Jeremy Soller
77f3a17c14
Fix warnings in live:
2020-06-30 09:36:19 -06:00
Jeremy Soller
d82eb57e9c
Update live: to new seek function
2020-06-30 09:08:55 -06:00
Graham MacDonald
af63c9773c
Merge remote-tracking branch 'origin/master' into signed-seek
2020-06-27 14:20:51 +01:00
jD91mZM2
4701838118
Fix RIP register on int3
2020-06-23 19:47:44 +02:00
jD91mZM2
7fc49eed74
ptrace: Allow stopping on fexec
2020-06-22 13:11:32 +02:00
Graham MacDonald
aa1b11cc8a
move calc_seek_offset* to syscall
2020-06-19 23:53:30 +01:00
Graham MacDonald
01f95b644d
change seek sig to match posix - signed pos and result
2020-06-19 23:31:55 +01:00
jD91mZM2
e18a877995
Implement proc:<pid>/exe for getting exe name
2020-06-17 19:06:48 +02:00
4lDO2
003bd6a0d2
More complex physalloc
2020-06-16 21:20:00 +00:00
jD91mZM2
edcc39929d
Fix unused import
...
I added that assert, because I managed to get an error I couldn't reproduce
2020-06-16 13:58:36 +02:00
jD91mZM2
9c891384ea
Fix ptrace returning ENODEV when process exists
2020-06-16 13:42:04 +02:00
jD91mZM2
cbb17327aa
ptrace: Block on read, not on write
2020-06-16 13:00:27 +02:00
jD91mZM2
12f632837a
Misc proc code cleanup
2020-06-16 10:08:49 +02:00
jD91mZM2
4effb97c04
fixup! Fix acid test-bench issues
2020-06-16 09:28:42 +02:00
jD91mZM2
727217ad42
Fix acid test-bench issues
2020-06-15 17:14:52 +02:00
jD91mZM2
3420339c04
proc scheme: Rewrite try_stop_context
2020-06-15 15:08:59 +02:00
jD91mZM2
75872cc5f8
ptrace: Fix WaitCondition mutex
2020-06-13 16:05:57 +02:00
4lDO2
1c0e6c253f
Fix test.
2020-06-11 16:11:46 +02:00
4lDO2
8117119d8e
Wrap borrows of page table entries in unsafe.
...
This is safe because `Entry` is `#[repr(8)]` which is the minimum
alignment for qwords. Since the size of a qword is equal to that
alignment (8), they can also be borrowed from the array.
2020-06-11 16:05:00 +02:00
Jeremy Soller
5d53c65f0b
Merge branch 'resolve-kernel-warnings' into 'master'
...
Fix various kernel warnings.
See merge request redox-os/kernel!125
2020-06-11 13:18:58 +00:00
4lDO2
e7d00d4735
Fix various kernel warnings.
2020-06-11 12:58:03 +02:00
4lDO2
c7b207f4dc
Use #[repr(packed)] with correct align for paging.
2020-06-11 11:58:58 +02:00
4lDO2
3289b95a7a
Fix conditional compilation without acpi feature.
2020-05-22 10:21:22 +02:00
Jeremy Soller
30b109d288
Update dependencies
2020-05-06 09:05:58 -06:00
4lDO2
0585c2b4d9
Make the IDTs of APs visible to irq:.
2020-05-03 16:57:32 +02:00
4lDO2
9232736bf1
Rename some things, and fix a map insertion.
2020-05-03 16:57:32 +02:00
4lDO2
f4246deabf
WIP: Use a different IDT for each processor.
2020-05-03 16:57:32 +02:00
4lDO2
0d1ca687fb
Use the correct interrupt method for spurious IRQs.
2020-05-03 16:57:03 +02:00
4lDO2
1165445602
Add spurious IRQ handling, using a visible counter.
2020-05-03 16:56:50 +02:00
Jeremy Soller
582e3fd8eb
Unlock CONTEXT_SWITCH_LOCK after loading registers but before switch
2020-04-21 21:03:17 -06:00
Jeremy Soller
c79f308f07
Unlock CONTEXT_SWITCH_LOCK after switch happens
2020-04-21 20:45:15 -06:00
Jeremy Soller
0bfd830f3c
Work around spurious nanosleep wakes
2020-04-20 21:08:56 -06:00
Jeremy Soller
dd0633a3d2
Kernel reading of ps2 bytes
2020-04-20 13:10:06 -06:00
Jeremy Soller
2fa85ed303
Remove unused import
2020-04-19 21:47:58 -06:00
Jeremy Soller
fa58651b70
Add serio scheme, based on debug scheme, for supporting ps2 devices
2020-04-19 21:40:12 -06:00
Jeremy Soller
5fd8f0430b
Cleanup debug scheme
2020-04-19 21:39:53 -06:00
Jeremy Soller
e528aa8fdc
Fix order of masking IRQ and eoi
2020-04-19 10:50:03 -06:00