diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2013-11-24 16:04:55 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2013-11-24 19:15:09 +0900 |
| commit | a130861d31f9d3051c138acf5792b0327be4ca6e (patch) | |
| tree | d2fc335127f4dca5b811b0b25730194254bbc8a7 | |
| parent | 52c8c1dabad9280944867264b9e19ec4f0ea9a47 (diff) | |
| download | rust-a130861d31f9d3051c138acf5792b0327be4ca6e.tar.gz rust-a130861d31f9d3051c138acf5792b0327be4ca6e.zip | |
std::rt: Fix record_stack_bounds on win64
| -rw-r--r-- | src/libstd/rt/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/context.rs b/src/libstd/rt/context.rs index e59704a6435..8998064990a 100644 --- a/src/libstd/rt/context.rs +++ b/src/libstd/rt/context.rs @@ -311,8 +311,8 @@ pub unsafe fn record_stack_bounds(stack_lo: uint, stack_hi: uint) { // https://github.com/mozilla/rust/issues/3445#issuecomment-26114839 // // stack range is at TIB: %gs:0x08 (top) and %gs:0x10 (bottom) - asm!("mov $0, %gs:0x08" :: "r"(stack_lo) :: "volatile"); - asm!("mov $0, %gs:0x10" :: "r"(stack_hi) :: "volatile"); + asm!("mov $0, %gs:0x08" :: "r"(stack_hi) :: "volatile"); + asm!("mov $0, %gs:0x10" :: "r"(stack_lo) :: "volatile"); } } |
