Add first user program hello_world.rs

This commit is contained in:
Yifan Wu 2020-11-18 14:48:13 +08:00
parent d2c0be3dd0
commit a97d4e82a5
79 changed files with 343 additions and 0 deletions

File diff suppressed because one or more lines are too long

3
user/target/CACHEDIR.TAG Normal file
View file

@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/

View file

View file

View file

@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/

View file

@ -0,0 +1 @@
This file has an mtime of when this was started.

View file

@ -0,0 +1 @@
{"rustc":457852275655460692,"features":"[]","target":3375593478374818422,"profile":18074012566298724745,"path":10872709659218687626,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"riscv64gc-unknown-none-elf/debug/.fingerprint/user_lib-ac05933ae451745f/dep-lib-user_lib"}}],"rustflags":["-Clink-args=-Tsrc/linker.ld"],"metadata":4791657899108178287,"config":0}

View file

@ -0,0 +1 @@
{"rustc":457852275655460692,"features":"[]","target":10036166384340519867,"profile":18074012566298724745,"path":10402765361534072892,"deps":[[1196176764371957,"user_lib",false,3528200472378708801]],"local":[{"CheckDepInfo":{"dep_info":"riscv64gc-unknown-none-elf/debug/.fingerprint/user_lib-b4124dce0aef8d75/dep-bin-hello_world"}}],"rustflags":["-Clink-args=-Tsrc/linker.ld"],"metadata":4791657899108178287,"config":0}

View file

@ -0,0 +1 @@
This file has an mtime of when this was started.

View file

@ -0,0 +1,5 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/deps/hello_world-b4124dce0aef8d75: src/bin/hello_world.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/deps/hello_world-b4124dce0aef8d75.d: src/bin/hello_world.rs
src/bin/hello_world.rs:

View file

@ -0,0 +1,10 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/deps/user_lib-ac05933ae451745f.rmeta: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/deps/libuser_lib-ac05933ae451745f.rlib: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/deps/user_lib-ac05933ae451745f.d: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
src/lib.rs:
src/console.rs:
src/syscall.rs:
src/lang_items.rs:

Binary file not shown.

View file

@ -0,0 +1 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/hello_world: /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/bin/hello_world.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/console.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lang_items.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lib.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/syscall.rs

View file

@ -0,0 +1 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/debug/libuser_lib.rlib: /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/console.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lang_items.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lib.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/syscall.rs

View file

@ -0,0 +1 @@
This file has an mtime of when this was started.

View file

@ -0,0 +1 @@
{"rustc":457852275655460692,"features":"[]","target":3375593478374818422,"profile":4339006351771724982,"path":10872709659218687626,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"riscv64gc-unknown-none-elf/release/.fingerprint/user_lib-0fdba27c1d499ab2/dep-lib-user_lib"}}],"rustflags":["-Clink-args=-Tsrc/linker.ld"],"metadata":4791657899108178287,"config":0}

View file

@ -0,0 +1 @@
{"rustc":457852275655460692,"features":"[]","target":10036166384340519867,"profile":4339006351771724982,"path":10402765361534072892,"deps":[[1196176764371957,"user_lib",false,7880708527971811982]],"local":[{"CheckDepInfo":{"dep_info":"riscv64gc-unknown-none-elf/release/.fingerprint/user_lib-65513b09835dd0af/dep-bin-hello_world"}}],"rustflags":["-Clink-args=-Tsrc/linker.ld"],"metadata":4791657899108178287,"config":0}

View file

@ -0,0 +1 @@
This file has an mtime of when this was started.

View file

@ -0,0 +1,5 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/deps/hello_world-65513b09835dd0af: src/bin/hello_world.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/deps/hello_world-65513b09835dd0af.d: src/bin/hello_world.rs
src/bin/hello_world.rs:

View file

@ -0,0 +1,10 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/deps/user_lib-0fdba27c1d499ab2.rmeta: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/deps/libuser_lib-0fdba27c1d499ab2.rlib: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/deps/user_lib-0fdba27c1d499ab2.d: src/lib.rs src/console.rs src/syscall.rs src/lang_items.rs
src/lib.rs:
src/console.rs:
src/syscall.rs:
src/lang_items.rs:

Binary file not shown.

View file

@ -0,0 +1 @@
/home/oslab/workspace/v3/rCore-Tutorial-v3/user/target/riscv64gc-unknown-none-elf/release/hello_world: /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/bin/hello_world.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/console.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lang_items.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/lib.rs /home/oslab/workspace/v3/rCore-Tutorial-v3/user/src/syscall.rs