From 99d27434095a5dd694eb9938abbe31efbba3e88c Mon Sep 17 00:00:00 2001 From: "rogier.brussee@b90d8f15ea9cc02d3617789f77a64c35bcd838d8" Date: Wed, 2 May 2018 20:44:18 +0100 Subject: [PATCH] --- overloadable_opcodes.mdwn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/overloadable_opcodes.mdwn b/overloadable_opcodes.mdwn index 64f24b8d9..95bcdac18 100644 --- a/overloadable_opcodes.mdwn +++ b/overloadable_opcodes.mdwn @@ -296,9 +296,9 @@ probabilities. On RV64 the UUID can also be extended to 52 bits (> 10^15). short cpu__lookup_lun(const struct uuid_device_priv2lun* lun_map, uuid_dev_t uuid_dev, enum privilege priv, lun_t on_notfound); -#define org_RiscV__Trap__lun ((lun_t)0) -#define org_RiscV__Fallback__ReturnZero__lun ((lun_t)1) -#define org_RiscV__Fallback__ReturnMinusOne__lun ((lun_t)2) + #define org_RiscV__Trap__lun ((lun_t)0) + #define org_RiscV__Fallback__ReturnZero__lun ((lun_t)1) + #define org_RiscV__Fallback__ReturnMinusOne__lun ((lun_t)2) lun_data_t xext(uuid_dev_t rs1, long rs2) { @@ -446,7 +446,7 @@ Example: /* struct lun2dev_subdevice_map[] */ dev_subdevice_map = { -// .lun = 0, will trap + // .lun = 0, will trap {{.lun = org_RiscV__Fallback__ReturnZero__lun, .priv = user}, .devAddr_interfId = {fallback, 1 /* ReturnZero */}}, {{.lun = org_RiscV__Fallback__ReturnZero__lun, .priv = super}, .devAddr_interfId = {fallback, 1 /* ReturnZero */}}, {{.lun = org_RiscV__Fallback__ReturnZero__lun, .priv = hyper}, .devAddr_interfId = {fallback, 1 /* ReturnZero */}}, @@ -457,7 +457,7 @@ Example: {{.lun = org_RiscV__Fallback__ReturnMinusOne__lun, .priv = mach}, .devAddr_interfId = {fallback, 2 /* ReturnMinusOne*/}}, // .lun = 3 .. 7 reserved for other fallback RV interfaces // .lun = 8 .. 30 reserved as error numbers, c.li t1 31; bltu rd t1 L_fail tests errors - // .lun = 31 reserved out of caution + // .lun = 31 reserved out of caution {{.lun = cpu__Device1__Frobate__lun, .priv = user}, .devAddr_interfId = {device1, 0 /* Frobate interface */}}, {{.lun = cpu__Device1__Frobate__lun, .priv = super}, .devAddr_interfId = {device1, 0 /* Frobate interface */}}, {{.lun = cpu__Device1__Frobate__lun, .priv = hyper}, .devAddr_interfId = {device1, 0 /* Frobate interface */}}, -- 2.30.2