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
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
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
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
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
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
dd0633a3d2
Kernel reading of ps2 bytes
2020-04-20 13:10:06 -06:00
Jeremy Soller
e528aa8fdc
Fix order of masking IRQ and eoi
2020-04-19 10:50:03 -06:00
4lDO2
9413475119
Don't use the I/O APIC by default,
...
since this would require pcid to know the _PRT (PCI routing table) to
use and map the interrupt pins to the correct IRQs. xhcid is unaffected
by this though, since it uses MSI-X.
All ACPI handling will be done in userspace before the infrastructure
necessary would make sense (I don't think adding serde to the kernel
would be optimal, and how else would all of the ACPI namespace be
parsed?).
2020-04-19 13:25:43 +02:00
4lDO2
02ca8edfc5
Execute AML code after IOAPIC init,
...
which tells the firmware that the I/O APIC is used rather than the 8259
PIC.
2020-04-19 09:41:40 +02:00
4lDO2
8c351e0768
Use the I/O APIC when applicable.
2020-04-19 09:41:09 +02:00
4lDO2
dc3452650c
Execute AML code after IOAPIC init,
...
which tells the firmware that the I/O APIC is used rather than the 8259
PIC.
2020-04-18 23:17:37 +02:00
4lDO2
290098b5a4
impl Debug for AmlValue.
2020-04-18 18:21:04 +02:00
4lDO2
5490de9fd2
Fix a page fault.
2020-04-18 17:33:03 +02:00
4lDO2
de4b66150d
Remove unnecessary kernel args.
2020-04-18 17:06:45 +02:00
4lDO2
f0b5d51793
Use the I/O APIC when applicable.
2020-04-18 16:36:18 +02:00
4lDO2
da6de394e4
Add a new backwards-compatible v2 boot protocol.
2020-04-18 11:28:11 +02:00
4lDO2
0fd24f6061
Cleanup.
2020-04-04 10:57:00 +02:00
4lDO2
b716ec4bc1
Remove currently unused APIC timer code.
2020-03-28 13:37:03 +01:00
4lDO2
d23ed0cfc3
Remove debug local APIC functions.
2020-03-28 13:37:03 +01:00
4lDO2
157a3e5c0d
Improve MSI.
2020-03-28 13:37:03 +01:00
4lDO2
772003138d
Add a backwards-compatible interface for more IRQs.
2020-03-28 13:37:03 +01:00
4lDO2
c154effd1c
Get a working local apic timer.
2020-03-28 13:37:03 +01:00
4lDO2
c11d6d9e46
Update the x86 crate.
2020-03-28 13:37:03 +01:00
Skallwar
ae14eda866
Run rustfmt
2020-03-06 21:05:26 +01:00
Skallwar
b82f596ef6
Fix unnecessary syntax
2020-03-06 21:02:20 +01:00
Jeremy Soller
d4d14c78c3
Ensure page table locking at runtime
2020-02-12 20:34:49 -07:00
Jeremy Soller
aec92c1617
Make PIT_TICKS thread_local
2020-02-09 09:49:49 -07:00
Jeremy Soller
e13107b441
Remove warning
2019-11-13 19:41:34 -07:00
Jeremy Soller
f7f4013cf0
Do not use COM3 or COM4
2019-11-13 19:39:45 -07:00
Jeremy Soller
90b113f047
Add lpss_debug
2019-11-13 19:33:21 -07:00
Jeremy Soller
331590e129
Support COM3 and COM4
2019-11-01 20:35:02 -06:00
Jeremy Soller
63e2a835e0
Fix clippy.sh script and fix a number of clippy warnings
2019-10-06 11:04:06 -06:00
jD91mZM2
2544feb33f
Disallow changing CS which contains CPL
2019-08-15 12:26:29 +02:00
Jeremy Soller
3694395dfb
Fix compilation of acpi feature
2019-08-12 19:33:03 -06:00
jD91mZM2
40449d32b5
Allow catching int3
2019-07-31 16:43:49 +02:00
jD91mZM2
ad5f3814fa
Add way to ignore signals
2019-07-30 15:54:25 +02:00
jD91mZM2
0e2b0d0fd4
Fix a few details
2019-07-26 10:29:31 +02:00