Commit Graph

892 Commits

Author SHA1 Message Date
Jeremy Soller
654c0a7bbc Merge branch 'ptrace-sane-block' into 'master'
Ptrace sane block

See merge request redox-os/kernel!129
2020-06-16 12:10:47 +00:00
Jeremy Soller
484f4c13fe Merge branch 'moar-ptrace' into 'master'
Misc ptrace cleanup

See merge request redox-os/kernel!128
2020-06-16 12:09:26 +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
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
Jeremy Soller
b90233bc30 Merge branch 'paging-repr-packed' into 'master'
Use #[repr(packed)] with correct alignment for paging.

See merge request redox-os/kernel!124
2020-06-11 13:17:51 +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
Jeremy Soller
93e0db1aa3 Merge branch 'noacpi-fix' into 'master'
Fix conditional compilation without the acpi feature.

See merge request redox-os/kernel!122
2020-05-22 11:38:16 +00: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
Jeremy Soller
4245dff4d8 Merge branch 'separate-idt' of gitlab.redox-os.org:4lDO2/kernel 2020-05-06 08:58:10 -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
dd4e82f4ce Merge branch 'cpuid' into 'master'
bump raw-cpuid dep to avoid pulling in serde

See merge request redox-os/kernel!121
2020-05-02 17:41:05 +00:00
Graham MacDonald
0614d3298d bump raw-cpuid dep to avoid pulling in serde 2020-05-02 14:11:23 +01: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
02abd58c10 Merge branch 'multi_core' into 'master'
Multi core

See merge request redox-os/kernel!118
2020-04-19 20:28:15 +00:00
Jeremy Soller
e528aa8fdc Fix order of masking IRQ and eoi 2020-04-19 10:50:03 -06:00
Jeremy Soller
abf971eaee Only require alignment of 4 bytes for rsdp 2020-04-19 08:49:42 -06:00
Jeremy Soller
315343be41 Add a way to snapshot context state 2020-04-19 08:46:50 -06:00
Jeremy Soller
123918ed43 Track the namespace that a description was opened from 2020-04-19 08:46:50 -06:00
Jeremy Soller
051a275c94 Remove unused import 2020-04-19 08:46:50 -06:00
Jeremy Soller
3c86af57b7 Allow contexts sharing process space to run on different CPUs 2020-04-19 08:46:50 -06:00
Jeremy Soller
fdf46d8043 Fix multi_core livelocks and add livelock debugging 2020-04-19 08:46:50 -06:00
Jeremy Soller
9d67e3dc28 Merge branch 'ioapic' into 'master'
Support the I/O APIC alongside the 8259 PIC

See merge request redox-os/kernel!117
2020-04-19 13:02:42 +00: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
00312bdf32 Revert to old default-features. 2020-04-19 13:21:59 +02:00
4lDO2
3bc4b9a691 Allow the MADT to be read from userspace,
and fix a typo that prevented multiple tables from being listed
correctly.
2020-04-19 09:41:42 +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
45fe040625 rustfmt. 2020-04-19 09:39:57 +02:00
4lDO2
d1ece2c811 Add a basic acpi: scheme, currently only for MCFG. 2020-04-19 09:39:57 +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