-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scheduler and interrupts 2.0, shutdown/reboot (#79)
This adds: - A new scheduler soon capable of running on multiple CPUs - An interrupts framework update designed to better abstract from specific platforms - An implementation of shutdown and reboot - On ESP32, reboot resets the CPU(s) - On ESP32, shutdown enters deep sleep - Support for asynchronous signals (i.e. sent by other processes)
- Loading branch information
1 parent
efc6012
commit fa3b27f
Showing
93 changed files
with
3,258 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
// SPDX-License-Identifier: MIT | ||
|
||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
|
||
|
||
// Maximum number of PLIC contexts. | ||
#define PLIC_MAX_CTX_COUNT 15872 | ||
|
||
// Offset for interrupt priorities. | ||
#define PLIC_PRIO_OFF 0x000000 | ||
// Offset for interrupt pending bits. | ||
#define PLIC_PENDING_OFF 0x001000 | ||
// Offset for interrupt enable bits. | ||
#define PLIC_ENABLE_OFF(ctx) (0x002000 + (ctx) * 0x80) | ||
// Offset for priority threshold. | ||
#define PLIC_THRESH_OFF(ctx) (0x200000 + (ctx) * 0x1000) | ||
// Offset for claim/complete. | ||
#define PLIC_CLAIM_OFF(ctx) (0x200004 + (ctx) * 0x1000) |
Oops, something went wrong.