From 0d290b91117fb0002e247b7a48a38eb40fc48fbd Mon Sep 17 00:00:00 2001 From: Test_User Date: Thu, 5 Jan 2023 03:29:26 -0500 Subject: Add hardware task switching, get rid of software interrupts --- cpu/interrupts/execution.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cpu/interrupts/execution.txt (limited to 'cpu/interrupts/execution.txt') diff --git a/cpu/interrupts/execution.txt b/cpu/interrupts/execution.txt new file mode 100644 index 0000000..858334c --- /dev/null +++ b/cpu/interrupts/execution.txt @@ -0,0 +1,10 @@ +When an interrupt occurs: + OPRI gets set to the PR from the previous code running + OIPI gets set to the IP from the previous code running + PR is set to all 1s + +The next interrupt will not occur until after the current processing has been finished via `ireti` + +When returning via ireth: + PR is set to OPRI + Execution jumps to OIPI -- cgit v1.2.3