mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c, vm.h: fix to support sparc machine.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f623cfba1
commit
9f34b73009
3 changed files with 9 additions and 6 deletions
2
cont.c
2
cont.c
|
@ -129,6 +129,7 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
|
|||
cont->machine_stack = ALLOC_N(VALUE, size);
|
||||
}
|
||||
|
||||
FLUSH_REGISTER_WINDOWS;
|
||||
MEMCPY(cont->machine_stack, cont->machine_stack_src, VALUE, size);
|
||||
|
||||
#ifdef __ia64
|
||||
|
@ -256,6 +257,7 @@ cont_restore_1(rb_context_t *cont)
|
|||
}
|
||||
#endif
|
||||
if (cont->machine_stack_src) {
|
||||
FLUSH_REGISTER_WINDOWS;
|
||||
MEMCPY(cont->machine_stack_src, cont->machine_stack,
|
||||
VALUE, cont->machine_stack_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue