summaryrefslogtreecommitdiff
path: root/cpu/registers
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2022-10-08 21:21:52 -0400
committerTest_User <hax@andrewyu.org>2022-10-08 21:21:52 -0400
commit727cda594d942f310180cda48ae04c5e3ee9a0ff (patch)
tree2ac6bc8653a2f8d2ec9977cfc13d9c6f9dbc0dde /cpu/registers
parent1e3383b8be6788888451a7938df651d730ce34a8 (diff)
downloadspecification-727cda594d942f310180cda48ae04c5e3ee9a0ff.tar.gz
specification-727cda594d942f310180cda48ae04c5e3ee9a0ff.zip
added basics for exceptions (incomplete)
Diffstat (limited to '')
-rw-r--r--cpu/registers/hardware-interrupt-related.txt5
-rw-r--r--cpu/registers/interrupt-related.txt17
2 files changed, 17 insertions, 5 deletions
diff --git a/cpu/registers/hardware-interrupt-related.txt b/cpu/registers/hardware-interrupt-related.txt
deleted file mode 100644
index 895ff92..0000000
--- a/cpu/registers/hardware-interrupt-related.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-OIP (Old Instruction Pointer)
- Used to store the old IP when interrupts occur
-
-OPR (Old Privilege Register)
- Used to store the old PR when interrupts occur
diff --git a/cpu/registers/interrupt-related.txt b/cpu/registers/interrupt-related.txt
new file mode 100644
index 0000000..dd4b0b8
--- /dev/null
+++ b/cpu/registers/interrupt-related.txt
@@ -0,0 +1,17 @@
+OIPH (Old Instruction Pointer [Hardware])
+ Used to store the old IP when hardware interrupts occur
+
+OPRH (Old Privilege Register [Hardware])
+ Used to store the old PR when hardware interrupts occur
+
+OIPE (Old Instruction Pointer [Exception])
+ Used to store the old IP when (non-double) exceptions occur
+
+OPRE (Old Privilege Register [Exception])
+ Used to store the old PR when (non-double) exceptions occur
+
+OIPDE (Old Instriction Pointer [Double Exception])
+ Used to store the old IP when double exceptions occur
+
+OPRDE (Old Privilege Register [Double Exception])
+ Used to store the old PR when double exceptions occur