Skip to content

[kernel] Make all serial lines fast, merge fast serial into single common thread#225

Open
Mellvik wants to merge 3 commits intomasterfrom
updates
Open

[kernel] Make all serial lines fast, merge fast serial into single common thread#225
Mellvik wants to merge 3 commits intomasterfrom
updates

Conversation

@Mellvik
Copy link
Owner

@Mellvik Mellvik commented Jan 31, 2026

A follow-up on #224 - the first commit adds an experimental merge of the serial interrupt handlers (com1 & com2) so that all lines share the same code. This saves some code - and required some asm hacks still being tested.

The following commit removeds the old (slow) serial handler and makes all lines equal, sharing the same driver, inspired by ghaerr/elks#2604.

One important experience while working on merging the interrupt handlers is that volatile doesn't always do what one expects, and most of the time does nothing at all. Also, the construct asm volatile ("" ::: "memory"); which is supposed to create a 'barrier´ between statements before and after, ensuring that no optimization crosses that line, doesn't have any effect whatsoever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant