[OpenBIOS] [PATCH 5/5] ciface.fs: implement SUNW, power-off service

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Mon Jan 15 22:04:36 CET 2018


This is a Sun-specific service which is only enabled for the SPARC64
architecture.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 forth/system/ciface.fs | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/forth/system/ciface.fs b/forth/system/ciface.fs
index 9dc433c..146561a 100644
--- a/forth/system/ciface.fs
+++ b/forth/system/ciface.fs
@@ -348,6 +348,14 @@ external
   find-method 0= if -1 else drop 0 then
 ;
 
+[IFDEF] CONFIG_SPARC64
+
+: SUNW,power-off ( -- )
+  power-off
+;
+
+[THEN]
+
 finish-device
 device-end
 
-- 
2.11.0




More information about the OpenBIOS mailing list