Skip to content

Commit

Permalink
关闭 Spectre & Meltdown 补丁
Browse files Browse the repository at this point in the history
  • Loading branch information
217heidai committed Jun 6, 2024
1 parent 1f4191a commit 6de3dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diy-part1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 使用 O2 级别的优化
sed -i 's,Os,O2 -march=x86-64-v2,g' include/target.mk

# Disable Mitigations
# 关闭 Spectre & Meltdown 补丁
sed -i 's,noinitrd,noinitrd mitigations=off,g' target/linux/x86/image/grub-efi.cfg
sed -i 's,noinitrd,noinitrd mitigations=off,g' target/linux/x86/image/grub-iso.cfg
sed -i 's,noinitrd,noinitrd mitigations=off,g' target/linux/x86/image/grub-pc.cfg
Expand Down

0 comments on commit 6de3dae

Please sign in to comment.