Author: laurent Date: 2009-11-09 19:39:26 +0000 (Mon, 09 Nov 2009) New Revision: 601
Modified: trunk/openbios-devel/drivers/cuda.c Log: Move "bind_func("poweroff", ppc32_poweroff)" from ob_cuda_initialize() to cuda_init() because it is a global word and if it is binded into the node initialization it breaks some other words ("decode-unit", "encode-unit").
Signed-off-by: Laurent Vivier Laurent@vivier.eu
Modified: trunk/openbios-devel/drivers/cuda.c =================================================================== --- trunk/openbios-devel/drivers/cuda.c 2009-11-08 23:43:19 UTC (rev 600) +++ trunk/openbios-devel/drivers/cuda.c 2009-11-09 19:39:26 UTC (rev 601) @@ -206,10 +206,6 @@ bind_func("ppc32-reset-all", ppc32_reset_all); push_str("' ppc32-reset-all to reset-all"); fword("eval"); - - PUSH(0); - fword("active-package!"); - bind_func("poweroff", ppc32_poweroff); }
static void @@ -307,5 +303,8 @@
main_cuda = cuda;
+ device_end(); + bind_func("poweroff", ppc32_poweroff); + return cuda; }