/RuscV

Rustで書かれたRisc-V CPUで起動する何か

Primary LanguageMakefileApache License 2.0Apache-2.0

RuscV

(Format:UTF-8)
Rustで書かれたRisc-V CPUで起動する何か

対応命令セット

  • RISC-V

ライセンス

Copyright 2019 PG_MANA

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

ビルド

環境整備

必要なソフトウェア

  • make
  • riscv64-elf-gcc(RISC-V向けクロスビルド用GCC)
  • cargo-xbuild

ビルド

make
#これでbin/kernel.elfができています

make run
#要:qemu-system-riscv64
#終了する際はCtrl+Aを押して話した後Xキーを押す

make clean
#中間ファイル削除

コーディング規約

基本は https://doc.rust-lang.org/1.1.0/style/style/naming/README.html に従ってください。 コード整形はrustfmtを使用します。
(本人が守れてないかも)

リンク

開発者のTwitterアカウント

https://twitter.com/PG_MANA_

開発者のWebページ

https://pg-mana.net

OS Wiki

https://soft.taprix.org/wiki/oswiki/