Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbi dbtr extension support #153

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

ASCIIDOCTOR = asciidoctor
ASCIIDOCTOR_PDF = $(ASCIIDOCTOR)-pdf
OPTIONS := --trace \
-a toc \
-a compress \
-a mathematical-format=svg \
-a pdf-fontsdir=docs-resources/fonts \
-a pdf-theme=docs-resources/themes/riscv-pdf.yml \
--failure-level=ERROR
REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-mathematical
DITAA = ditaa
DEPS = src/contributors.adoc
DEPS += src/changelog.adoc
Expand All @@ -25,10 +35,12 @@ DEPS += src/ext-nested-acceleration.adoc
DEPS += src/ext-steal-time.adoc
DEPS += src/ext-sse.adoc
DEPS += src/ext-firmware-features.adoc
DEPS += src/ext-debug-triggers.adoc
DEPS += src/ext-experimental.adoc
DEPS += src/ext-vendor.adoc
DEPS += src/ext-firmware.adoc
DEPS += src/references.adoc
DEPS += src/references.bib
IMAGES = images/riscv-sbi-intro1.png
IMAGES += images/riscv-sbi-intro2.png
IMAGES += images/riscv-sbi-hsm.png
Expand All @@ -52,12 +64,7 @@ images/%.png: src/%.ditaa
$(ASCIIDOCTOR) -d book -b html $<

%.pdf: %.adoc $(IMAGES) docs-resources/themes/riscv-pdf.yml $(REVSNIP) $(DEPS)
$(ASCIIDOCTOR_PDF) \
-a toc \
-a compress \
-a pdf-style=docs-resources/themes/riscv-pdf.yml \
-a pdf-fontsdir=docs-resources/fonts \
-o $@ $<
$(ASCIIDOCTOR_PDF) $(OPTIONS) $(REQUIRES) --out-file=$@ $<

$(SPEC)/autogenerated:
-mkdir $@
Expand Down
29 changes: 17 additions & 12 deletions riscv-sbi.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// SPDX-License-Identifier: CC-BY-4.0
[[riscv-doc-template]]
:description: RISC-V SBI definition specification
= RISC-V Supervisor Binary Interface Specification
:docgroup: RISC-V Non-ISA Specification
:author: RISC-V Platform Runtime Services Task Group
:email: tech-prs@lists.riscv.org
:description: Supervisor Binary Interface
:company: RISC-V.org
// Pull in variable with revision info
include::autogenerated/revision.adoc-snippet[]
:revremark: Assume everything can change.
:revremark: This document is under development. Expect potential changes.
:url-riscv: http://riscv.org
:doctype: book
:preface-title: Preamble
Expand All @@ -14,7 +16,11 @@ include::autogenerated/revision.adoc-snippet[]
// Settings:
:experimental:
:reproducible:
:WaveDromEditorApp: wavedrom-cli
//:WaveDromEditorApp: app/wavedrom-editor.app
:imagesoutdir: docs-resources/images
:bibtex-file: src/references.bib
:bibtex-order: alphabetical
:bibtex-style: ieee
:icons: font
:lang: en
:listing-caption: Listing
Expand All @@ -31,17 +37,14 @@ endif::[]
:stem: latexmath
:footnote:
:xrefstyle: short

= RISC-V Supervisor Binary Interface Specification
:author: RISC-V Platform Runtime Services Task Group
:email: tech-prs@lists.riscv.org
:table
font_size: 12

// Preamble
[WARNING]
.This document is in the link:http://riscv.org/spec-state[Development]
.This document is in the link:http://riscv.org/spec-state[Development state]
====
Assume everything can change.

Expect potential changes.
====

// table of contents
Expand Down Expand Up @@ -98,6 +101,8 @@ include::src/ext-sse.adoc[]

include::src/ext-firmware-features.adoc[]

include::src/ext-debug-triggers.adoc[]

include::src/ext-experimental.adoc[]

include::src/ext-vendor.adoc[]
Expand Down
1 change: 1 addition & 0 deletions src/changelog.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
== Change Log

=== Version 3.0-rc1
* Added SBI DBTR extension
* Added SBI FWFT extension
* Added SBI SSE extension
* Added error code SBI_ERR_BAD_RANGE
Expand Down
Loading
Loading