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

Update rust version #495

Merged
merged 9 commits into from
Jun 13, 2023
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Unreleased
- Update rust version (#495)
- Fix lisp range params (#494)
- Fix lisp comments (#493)
- Add docstring to lisp (#490)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ serial = []

[dependencies]
acpi = "4.1.0"
aml = "0.16.3"
aml = "0.16.4"
base64 = { version = "0.13.1", default-features = false }
bit_field = "0.10.2"
bootloader = { version = "0.9.23", features = ["map_physical_memory"] }
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
.EXPORT_ALL_VARIABLES:

setup:
curl https://sh.rustup.rs -sSf | sh -s -- -y
rustup install nightly
rustup default nightly
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
rustup show
cargo install bootimage

# Compilation options
Expand Down Expand Up @@ -38,7 +37,7 @@ user-rust:
cargo rustc --release --bin {}
basename -s .rs src/bin/*.rs | xargs -I {} \
cp target/x86_64-moros/release/{} dsk/bin/{}
#strip dsk/bin/*
strip dsk/bin/*

bin = target/x86_64-moros/$(mode)/bootimage-moros.bin
img = disk.img
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ Documentation is available [here](doc/index.md)

## Setup

You will need `git`, `gcc`, `make`, `curl`, `qemu-img`, and
`qemu-system-x86_64` on the host system.

Clone the repo:

$ git clone https://github.com/vinc/moros
$ cd moros

Install the required tools with `make setup` or the following commands:

$ curl https://sh.rustup.rs -sSf | sh
$ rustup install nightly
$ rustup default nightly
$ curl https://sh.rustup.rs -sSf | sh -- --default-toolchain none
$ rustup show
$ cargo install bootimage


Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2022-12-21"
channel = "nightly-2023-05-01"
components = ["rust-src", "llvm-tools-preview"]
6 changes: 3 additions & 3 deletions src/sys/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn code_addr() -> u64 {

pub fn set_code_addr(addr: u64) {
let mut table = PROCESS_TABLE.write();
let mut proc = &mut table[id()];
let proc = &mut table[id()];
proc.code_addr = addr;
}

Expand All @@ -164,7 +164,7 @@ pub fn registers() -> Registers {

pub fn set_registers(regs: Registers) {
let mut table = PROCESS_TABLE.write();
let mut proc = &mut table[id()];
let proc = &mut table[id()];
proc.registers = regs
}

Expand All @@ -176,7 +176,7 @@ pub fn stack_frame() -> InterruptStackFrameValue {

pub fn set_stack_frame(stack_frame: InterruptStackFrameValue) {
let mut table = PROCESS_TABLE.write();
let mut proc = &mut table[id()];
let proc = &mut table[id()];
proc.stack_frame = stack_frame;
}

Expand Down