summaryrefslogtreecommitdiffstats
path: root/platforms/mambo/mambo.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/mambo/mambo.c')
-rw-r--r--platforms/mambo/mambo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c
index 279ff1f2..21578c80 100644
--- a/platforms/mambo/mambo.c
+++ b/platforms/mambo/mambo.c
@@ -34,6 +34,13 @@ static bool mambo_probe(void)
return true;
}
+static inline unsigned long callthru0(int command)
+{
+ register uint64_t c asm("r3") = command;
+ asm volatile (".long 0x000eaeb0":"=r" (c):"r"(c));
+ return (c);
+}
+
static int64_t mambo_rtc_read(uint32_t *ymd, uint64_t *hmsm)
{
int64_t mambo_time;
OpenPOWER on IntegriCloud