comparison src/alloc.c @ 101387:b19b16732fb0

(mark_stack): Use "flushw" instead of "ta 3" assembly call for Sparc64.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 23 Jan 2009 04:38:18 +0000
parents e038c1a8307c
children 697627d7beda
comparison
equal deleted inserted replaced
101386:7e35f82c4a0b 101387:b19b16732fb0
4486 the process is contained in the stack. */ 4486 the process is contained in the stack. */
4487 /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is 4487 /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is
4488 needed on ia64 too. See mach_dep.c, where it also says inline 4488 needed on ia64 too. See mach_dep.c, where it also says inline
4489 assembler doesn't work with relevant proprietary compilers. */ 4489 assembler doesn't work with relevant proprietary compilers. */
4490 #ifdef __sparc__ 4490 #ifdef __sparc__
4491 #ifdef __sparc64__
4492 asm ("flushw");
4493 #else
4491 asm ("ta 3"); 4494 asm ("ta 3");
4495 #endif
4492 #endif 4496 #endif
4493 4497
4494 /* Save registers that we need to see on the stack. We need to see 4498 /* Save registers that we need to see on the stack. We need to see
4495 registers used to hold register variables and registers used to 4499 registers used to hold register variables and registers used to
4496 pass parameters. */ 4500 pass parameters. */