Skip to content

Commit feacd87

Browse files
committed
[cheriot,sw] SW adaptations for CHERIoT
Signed-off-by: Thomas Benz <tbenz@lowrisc.org>
1 parent 65e3edd commit feacd87

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

hw/top_earlgrey/data/otp/otp_ctrl_img_owner_sw_cfg.hjson

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"0x94949494",
113113
"0x94949494",
114114
"0x94949494",
115+
"0x94949494",
115116
],
116117
},
117118
{
@@ -162,19 +163,19 @@
162163
},
163164
{
164165
name: "OWNER_SW_CFG_ROM_ALERT_DIGEST_DEV",
165-
value: "0x6db5ced",
166+
value: "0x18cbd487",
166167
},
167168
{
168169
name: "OWNER_SW_CFG_ROM_ALERT_DIGEST_PROD",
169-
value: "0x68737b02",
170+
value: "0x7663f368",
170171
},
171172
{
172173
name: "OWNER_SW_CFG_ROM_ALERT_DIGEST_PROD_END",
173-
value: "0x9c389f87",
174+
value: "0x822817ed",
174175
},
175176
{
176177
name: "OWNER_SW_CFG_ROM_ALERT_DIGEST_RMA",
177-
value: "0xc20dd3a6",
178+
value: "0xdc1d5bcc",
178179
},
179180
{
180181
name: "OWNER_SW_CFG_ROM_SENSOR_CTRL_ALERT_CFG",

sw/device/lib/dif/dif_alert_handler_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using ::testing::Return;
3030
// so if the number of alerts change, the digest will be changed
3131
// as well. This process is not yet automated, so the user
3232
// must be aware on how to update the value.
33-
static_assert(ALERT_HANDLER_PARAM_N_ALERTS == 63,
33+
static_assert(ALERT_HANDLER_PARAM_N_ALERTS == 64,
3434
"The number of alerts have changed.");
3535

3636
constexpr int kAlerts = ALERT_HANDLER_PARAM_N_ALERTS;

sw/device/silicon_creator/rom/rom_epmp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ extern char _text_end[]; // End of executable code.
1717

1818
// Note: Hardcoding these values since the way we generate this range is not
1919
// very robust at the moment. See #14345 and #14336.
20-
static_assert(TOP_EARLGREY_MMIO_BASE_ADDR == 0x40000000,
20+
static_assert(TOP_EARLGREY_MMIO_BASE_ADDR == 0x11000000,
2121
"MMIO region changed, update ePMP configuration if needed");
22-
static_assert(TOP_EARLGREY_MMIO_SIZE_BYTES == 0x10000000,
22+
static_assert(TOP_EARLGREY_MMIO_SIZE_BYTES == 0x3F000000,
2323
"MMIO region changed, update ePMP configuration if needed");
2424

2525
static_assert(TOP_EARLGREY_SRAM_CTRL_RET_AON_RAM_BASE_ADDR >=

sw/device/tests/penetrationtests/json/pentest_lib_commands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414

1515
#define MODULE_ID MAKE_MODULE_ID('j', 'p', 'c')
1616

17-
#define ALERT_HANDLER_PARAM_N_ALERTS 63
17+
#define ALERT_HANDLER_PARAM_N_ALERTS 64
1818
#define ALERT_HANDLER_PARAM_N_CLASSES 4
1919
#define SENSOR_CTRL_PARAM_NUM_ALERT_EVENTS 11
2020
#define ALERT_HANDLER_PARAM_N_PHASES 4

0 commit comments

Comments
 (0)