(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を使用します。
(本人が守れてないかも)