From 7954a9f424194379da5ff6496987707943612732 Mon Sep 17 00:00:00 2001 From: Ford Smith <41210901+Programatic@users.noreply.github.com> Date: Thu, 17 Mar 2022 23:42:00 -0400 Subject: [PATCH] Set CS register with non-deprecated function set_cs is deprecated and CS::set_reg is preferred. Update the blog to reflect this change according to the docs. --- blog/content/edition-2/posts/06-double-faults/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/edition-2/posts/06-double-faults/index.md b/blog/content/edition-2/posts/06-double-faults/index.md index 02a13d01..16ea0d05 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.md +++ b/blog/content/edition-2/posts/06-double-faults/index.md @@ -368,7 +368,7 @@ pub fn init() { GDT.0.load(); unsafe { - set_cs(GDT.1.code_selector); + CS::set_reg(GDT.1.code_selector); load_tss(GDT.1.tss_selector); } }