зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3f623cfba1
Коммит
9f34b73009
|
@ -1,3 +1,8 @@
|
|||
Mon Dec 24 03:57:28 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* cont.c, vm.h: fix to support sparc machine.
|
||||
a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
|
||||
|
||||
Mon Dec 24 03:35:19 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* common.mk: remove additional "-".
|
||||
|
|
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);
|
||||
}
|
||||
|
|
8
vm.h
8
vm.h
|
@ -118,14 +118,10 @@ error !
|
|||
#define ELABEL(x) INSN_ELABEL_##x
|
||||
#define LABEL_PTR(x) &&LABEL(x)
|
||||
|
||||
#define INSN_ENTRY_SIG(insn) \
|
||||
asm volatile ( "; #**************************************************\n" \
|
||||
"\t; #[start] " # insn "\n") \
|
||||
#define INSN_ENTRY_SIG(insn)
|
||||
|
||||
|
||||
#define INSN_DISPATCH_SIG(insn) \
|
||||
asm volatile ( "; #[end ] " # insn "\n"\
|
||||
"\t; #==================================================\n") \
|
||||
#define INSN_DISPATCH_SIG(insn)
|
||||
|
||||
#define INSN_ENTRY(insn) \
|
||||
LABEL(insn): \
|
||||
|
|
Загрузка…
Ссылка в новой задаче