Skip to content

Commit da4f8c4

Browse files
authored
Merge pull request #301 from ncatelli/documentation/fix-load-segment-references-in-gdt-load-docs
docs: Update segment register references in GDT::load* method to non-deprecated methods
2 parents 4ced281 + 0290fa1 commit da4f8c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/structures/gdt.rs

+4-4
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)