summaryrefslogtreecommitdiff
path: root/cheri/sail_latex/sailfnCapExCode.tex
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-07-27 16:29:40 +0100
committerAlasdair Armstrong2018-07-27 16:29:40 +0100
commit313c004c1829700697ea2fe1281cc1f7afe5904a (patch)
tree8af9ee022502c8d422daf98178000df5e9317e97 /cheri/sail_latex/sailfnCapExCode.tex
parent4861ebb08ccd3e13af19b9c12f2164b66a5d2bb0 (diff)
Check in snapshot of cheri latex
Diffstat (limited to 'cheri/sail_latex/sailfnCapExCode.tex')
-rw-r--r--cheri/sail_latex/sailfnCapExCode.tex26
1 files changed, 26 insertions, 0 deletions
diff --git a/cheri/sail_latex/sailfnCapExCode.tex b/cheri/sail_latex/sailfnCapExCode.tex
new file mode 100644
index 00000000..324612a0
--- /dev/null
+++ b/cheri/sail_latex/sailfnCapExCode.tex
@@ -0,0 +1,26 @@
+function #\hyperref[zCapExCode]{CapExCode}#(ex) : CapEx -> #\hyperref[zbits]{bits}#(8)=
+ match ex {
+ CapEx_None => 0x00,
+ CapEx_LengthViolation => 0x01,
+ CapEx_TagViolation => 0x02,
+ CapEx_SealViolation => 0x03,
+ CapEx_TypeViolation => 0x04,
+ CapEx_CallTrap => 0x05,
+ CapEx_ReturnTrap => 0x06,
+ CapEx_TSSUnderFlow => 0x07,
+ CapEx_UserDefViolation => 0x08,
+ CapEx_TLBNoStoreCap => 0x09,
+ CapEx_InexactBounds => 0x0a,
+ CapEx_GlobalViolation => 0x10,
+ CapEx_PermitExecuteViolation => 0x11,
+ CapEx_PermitLoadViolation => 0x12,
+ CapEx_PermitStoreViolation => 0x13,
+ CapEx_PermitLoadCapViolation => 0x14,
+ CapEx_PermitStoreCapViolation => 0x15,
+ CapEx_PermitStoreLocalCapViolation => 0x16,
+ CapEx_PermitSealViolation => 0x17,
+ CapEx_AccessSystemRegsViolation => 0x18,
+ CapEx_PermitCCallViolation => 0x19,
+ CapEx_AccessCCallIDCViolation => 0x1a,
+ CapEx_PermitUnsealViolation => 0x1b
+ }