Skip to content

Commit 0290fa1

Browse files
author
Nate Catelli
committed
fix gdt load docs to cover deprecation
1 parent 4ced281 commit 0290fa1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/structures/gdt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ impl GlobalDescriptorTable {
173173
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
174174
/// segment registers; you **must** (re)load them yourself using [the appropriate
175175
/// functions](crate::instructions::segmentation):
176-
/// [load_ss](crate::instructions::segmentation::load_ss),
177-
/// [set_cs](crate::instructions::segmentation::set_cs).
176+
/// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
177+
/// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
178178
#[cfg(feature = "instructions")]
179179
#[inline]
180180
pub fn load(&'static self) {
@@ -185,8 +185,8 @@ impl GlobalDescriptorTable {
185185
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
186186
/// segment registers; you **must** (re)load them yourself using [the appropriate
187187
/// functions](crate::instructions::segmentation):
188-
/// [load_ss](crate::instructions::segmentation::load_ss),
189-
/// [set_cs](crate::instructions::segmentation::set_cs).
188+
/// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
189+
/// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
190190
///
191191
/// # Safety
192192
///

0 commit comments

Comments
 (0)