diff --git a/kernel/.cargo/config.toml b/kernel/.cargo/config.toml
index 2074f9ef3b2037404a4962df70f30548f7001ebb..90e45f7a3d7f11cc63879c29fa6f6ad8c1819ed8 100644
--- a/kernel/.cargo/config.toml
+++ b/kernel/.cargo/config.toml
@@ -7,12 +7,12 @@ target-dir = "target"
 rustflags = ["-Clink-arg=-Tlinker.ld"]
 
 
-# [source.crates-io]
-# replace-with = "vendored-sources"
+[source.crates-io]
+replace-with = "vendored-sources"
 
-# [source."git+https://github.com/rcore-os/riscv"]
-# git = "https://github.com/rcore-os/riscv"
-# replace-with = "vendored-sources"
+[source."git+https://github.com/rcore-os/riscv"]
+git = "https://github.com/rcore-os/riscv"
+replace-with = "vendored-sources"
 
-# [source.vendored-sources]
-# directory = "vendor"
+[source.vendored-sources]
+directory = "vendor"
diff --git a/kernel/cargo-config/config.toml b/kernel/cargo-config/config.toml
index 2074f9ef3b2037404a4962df70f30548f7001ebb..90e45f7a3d7f11cc63879c29fa6f6ad8c1819ed8 100644
--- a/kernel/cargo-config/config.toml
+++ b/kernel/cargo-config/config.toml
@@ -7,12 +7,12 @@ target-dir = "target"
 rustflags = ["-Clink-arg=-Tlinker.ld"]
 
 
-# [source.crates-io]
-# replace-with = "vendored-sources"
+[source.crates-io]
+replace-with = "vendored-sources"
 
-# [source."git+https://github.com/rcore-os/riscv"]
-# git = "https://github.com/rcore-os/riscv"
-# replace-with = "vendored-sources"
+[source."git+https://github.com/rcore-os/riscv"]
+git = "https://github.com/rcore-os/riscv"
+replace-with = "vendored-sources"
 
-# [source.vendored-sources]
-# directory = "vendor"
+[source.vendored-sources]
+directory = "vendor"