diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-17 14:42:28 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-17 14:42:40 -0700 |
| commit | ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa (patch) | |
| tree | 1a28bb09eaeaf105bd84cc62c6a3e6c9ae2a8b8f /src/rt/arch | |
| parent | efac7c9a197fa3ff3497ce99a2dda8693b3ef683 (diff) | |
| download | rust-ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa.tar.gz rust-ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa.zip | |
Making more of the rust_task structure directly accessible from Rust.
Diffstat (limited to 'src/rt/arch')
| -rw-r--r-- | src/rt/arch/i386/context.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/arch/i386/context.cpp b/src/rt/arch/i386/context.cpp index a3853d636ee..f5fa3777eec 100644 --- a/src/rt/arch/i386/context.cpp +++ b/src/rt/arch/i386/context.cpp @@ -4,6 +4,7 @@ #include <stdio.h> #include <stdlib.h> +#include <assert.h> extern "C" uint32_t CDECL swap_registers(registers_t *oregs, registers_t *regs) @@ -11,6 +12,7 @@ extern "C" uint32_t CDECL swap_registers(registers_t *oregs, context::context() { + assert((void*)®s == (void*)this); } void context::swap(context &out) |
