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
- Host: GitHub
- URL: https://github.com/leecannon/zig-sbi
- Owner: leecannon
- License: mit
- Created: 2022-03-03T23:01:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T17:59:21.000Z (7 months ago)
- Last Synced: 2025-03-29T02:51:29.611Z (7 months ago)
- Topics: osdev, risc-v, riscv, riscv32, riscv64, sbi, zig, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 135 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - leecannon/zig-sbi - V SBI specification. (Embedded Development / Linker)
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"));
```