An open API service indexing awesome lists of open source software.

https://github.com/leecannon/zig-sbi

Zig wrapper around the RISC-V SBI specification
https://github.com/leecannon/zig-sbi

osdev risc-v riscv riscv32 riscv64 sbi zig zig-package ziglang

Last synced: 6 months ago
JSON representation

Zig wrapper around the RISC-V SBI specification

Awesome Lists containing this project

README

          

# zig-sbi

Zig wrapper around the [RISC-V SBI specification](https://github.com/riscv-non-isa/riscv-sbi-doc).

Compatible with SBI Specification v3.0-rc1.

## Installation

Add the dependency to `build.zig.zon`:

```sh
zig fetch --save git+https://github.com/leecannon/zig-sbi
```

Then add the following to `build.zig`:

```zig
const sbi = b.dependency("sbi", .{});
exe.root_module.addImport("sbi", sbi.module("sbi"));
```