Skip to content

Commit a130861

Browse files
committed
std::rt: Fix record_stack_bounds on win64
1 parent 52c8c1d commit a130861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ pub unsafe fn record_stack_bounds(stack_lo: uint, stack_hi: uint) {
311311
// https://github.com/mozilla/rust/issues/3445#issuecomment-26114839
312312
//
313313
// stack range is at TIB: %gs:0x08 (top) and %gs:0x10 (bottom)
314-
asm!("mov $0, %gs:0x08" :: "r"(stack_lo) :: "volatile");
315-
asm!("mov $0, %gs:0x10" :: "r"(stack_hi) :: "volatile");
314+
asm!("mov $0, %gs:0x08" :: "r"(stack_hi) :: "volatile");
315+
asm!("mov $0, %gs:0x10" :: "r"(stack_lo) :: "volatile");
316316
}
317317
}
318318

0 commit comments

Comments
 (0)