From e5afa2fd73be383e07456c38e777e9bdb0cc34b8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 26 Jan 2016 16:52:57 +0100 Subject: sysgen: fix build for CONFIG_DEBUG_VIRTUAL=y --- sysgen/fetch.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysgen') diff --git a/sysgen/fetch.go b/sysgen/fetch.go index 790e82957..ad7cd58d1 100644 --- a/sysgen/fetch.go +++ b/sysgen/fetch.go @@ -84,6 +84,9 @@ var fetchSrc = ` [[DEFAULTS]] int printf(const char *format, ...); unsigned long phys_base; +#ifndef __phys_addr +unsigned long __phys_addr(unsigned long addr) { return 0; } +#endif int main() { int i; unsigned long vals[] = {[[VALS]]}; -- cgit mrf-deployment