From 20a9422e0394a19df23c93eb00885f48150eb216 Mon Sep 17 00:00:00 2001 From: logwang Date: Wed, 25 Oct 2017 15:16:28 +0800 Subject: [PATCH] Fix bug: undefined refrence to `fueword`. --- lib/ff_compat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ff_compat.c b/lib/ff_compat.c index 0f3629a5e..fd26e4692 100644 --- a/lib/ff_compat.c +++ b/lib/ff_compat.c @@ -317,6 +317,13 @@ fubyte(volatile const void *base) return (*(volatile const uint8_t *)base); } +int +fueword(volatile const void *base, long *val) +{ + *val = (*(volatile const long *)base); + return 0; +} + void timekeep_push_vdso(void) {