commit | ec661c37368a3f02f272429a59581f4340ffcf70 | [log] [tgz] |
---|---|---|
author | Sam Leffler <sleffler@google.com> | Tue Aug 06 11:35:42 2024 -0700 |
committer | Sam Leffler <sleffler@google.com> | Tue Aug 27 16:32:54 2024 -0700 |
tree | 0f20291ceec108ece17a8370932de13a81fd750f | |
parent | a70d40495f6b157d867e3145e533a87aeddb246a [diff] |
[sw] Revamp api's to suoport CHERI On a CHERI target it's not possible to blindly convert a physical address to a pointer; change relevant api's to take one or more base addresses instead. Note this intentionally does not save the base addresses in static variables or similar; we pass the necessary pointers to each call to (potentially) avoid memory references. NB: rention_sram_get is retained for non-cheri targets to mimimize churn; this should be removed if/when api's are updated as described above. Specific changes: - otp_* take a base address - sec_mmio_* take a uintptr_t instead of a uint32_t - device_fpga_Version_print takes a uintptr_t - bootstrap_* take uintptr_t's - boot_data_* take uintptr_t's - alert_* take uintptr_t's - ast_* take unitptr_t's - flash_ctrl* take unitptr_t's - ibex_* take uintptr_t's - otbn_* take unitptr_t's - pinmux_* take unitptr_t's - retention_sram_* take uintptr_t's - rnd_* take uintptr_t's - spi_device_* take uintptr_t's - watchdog_* take uintptr_t's - shutdown_* take uintptr'ts - sigverify_* take uintptr'ts TODO(shutdown): SHUTDOWN_IF_ERROR is broken Bypass-Presubmit-Reason: verified as part of topic Change-Id: Ieb445df3de37a5ea71b4451d770f03a6b3ed79ba
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).