[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH]: gnumach - simplify interrupt handling
From: |
Damien Zammit |
Subject: |
[PATCH]: gnumach - simplify interrupt handling |
Date: |
Sat, 9 Nov 2019 15:46:33 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 |
Hi there,
Please find attached 2x patches for gnumach (apply cleanly on debian gnumach).
The first patch combines all spls 1-7 into a single spl that disables all
interrupts.
It boots with just this patch.
The second patch removes all concept of a cached PIC mask, and allows the PIC
to remain
unmasked for all interrupts individually all the time (except when doing an
EOI).
This simplifies the interrupt handling because if you need to disable
interrupts in a driver,
all you need to do is call:
spl_t s = splhi();
/* Do your stuff here */
splx(s);
This also boots with linux drivers enabled on native hw,
and I tested it out by compiling gnumach while running this version with AHCI
disk driver.
Damien
0001-combine-spls
Description: Text document
0002-remove-picmask
Description: Text document
- [PATCH]: gnumach - simplify interrupt handling,
Damien Zammit <=
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/10
- Re: [PATCH]: gnumach - simplify interrupt handling, Damien Zammit, 2019/11/11
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/11
- Re: [PATCH]: gnumach - simplify interrupt handling, Samuel Thibault, 2019/11/11
- Re: [PATCH]: gnumach - simplify interrupt handling, Justus Winter, 2019/11/11