From 63686ab585b990121672f3249ee12197e014952f Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 27 May 2015 11:35:36 +1000 Subject: Add Mambo platform By adding an explicit mambo platform we can do tricks like a fake NVRAM, actually get RTC from mambo and generally be a bit better in a simulator Signed-off-by: Stewart Smith --- asm/misc.S | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'asm/misc.S') diff --git a/asm/misc.S b/asm/misc.S index 5e47c98..c8abdb9 100644 --- a/asm/misc.S +++ b/asm/misc.S @@ -74,3 +74,11 @@ mambo_sim_exit: li %r3, 31 /* aka. SimExitCode */ .long 0x000eaeb0 b . + +.global mambo_get_time +mambo_get_time: +#define SIM_GET_TIME_CODE 70 + li %r3,SIM_GET_TIME_CODE + .long 0x000eaeb0 + blr + -- cgit v1.1