commit | fa1b698e8796b8feb1047e8679f7733fdbdddb71 | [log] [tgz] |
---|---|---|
author | Sam Elliott <selliott@lowrisc.org> | Mon Mar 23 18:40:07 2020 +0000 |
committer | Garret Kelly <Garret.Kelly@gmail.com> | Tue Mar 24 13:14:18 2020 -0400 |
tree | 8599d8b85637da49133e19671d8ea6ac4ff75f57 | |
parent | 8e57719926e9be5d145704f0ff846262b2c2a861 [diff] |
[sw/crt] Initialise Global Pointer Correctly `__global_pointer$` is used by GNU ld during linker relaxation to represent the value in `gp`, so that some accesses can have their addresses materialised directly in the load/store instruction, rather than having to do `lui; addi` or similair. The real payoff of this relaxation is for loads and stores of small globals. For this reason, we want to ensure that the small data sections come before their respective regular sections, so they have a higher probability of landing within a 12-bit signed immediate of `__global_pointer$`. This commit reorders these sections and describes why. Signed-off-by: Sam Elliott <selliott@lowrisc.org>
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 either access it online or build it locally by following the steps below.
$ sudo apt install curl python3 python3-pip $ pip3 install --user -r python-requirements.txt
$ ./util/build_docs.py --preview
This compiles the documentation into ./build/docs
and starts a local server, which allows you to access the documentation at http://127.0.0.1:1313.
Have a look at CONTRIBUTING 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).