diff --git a/rust/task/affinity/src/main.rs b/rust/task/affinity/src/main.rs index 008dfd7..382e639 100644 --- a/rust/task/affinity/src/main.rs +++ b/rust/task/affinity/src/main.rs @@ -59,11 +59,11 @@ fn main() { assert_ne!(this_cpu_id(), cpu_id, "CPU affinity changes failed!"); thread::yield_now(); } - let _ = FINISHED_TASKS.fetch_add(1, Ordering::SeqCst); + let _ = FINISHED_TASKS.fetch_add(1, Ordering::Relaxed); }); } - while FINISHED_TASKS.load(Ordering::SeqCst) < NUM_TASKS { + while FINISHED_TASKS.load(Ordering::Relaxed) < NUM_TASKS { thread::yield_now(); } diff --git a/scripts/get_deps.sh b/scripts/get_deps.sh index 8ee684f..74d13f1 100755 --- a/scripts/get_deps.sh +++ b/scripts/get_deps.sh @@ -3,7 +3,7 @@ AX_ROOT=.arceos test ! -d "$AX_ROOT" && echo "Cloning repositories ..." || true -test ! -d "$AX_ROOT" && git clone https://github.com/arceos-org/arceos "$AX_ROOT" --depth=1 || true +test ! -d "$AX_ROOT" && git clone -b axsync https://github.com/arceos-org/arceos "$AX_ROOT" --depth=1 || true echo "Copying Cargo.lock ..." cp "$AX_ROOT/Cargo.lock" Cargo.lock