aboutsummaryrefslogtreecommitdiffstats
path: root/sysgen
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-01-26 16:52:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-01-26 16:52:57 +0100
commite5afa2fd73be383e07456c38e777e9bdb0cc34b8 (patch)
tree902775b0de23e6e8fd476b1df19b0c748b305c18 /sysgen
parent62dabb6a64739344510318c3b2ffb68a7345ac14 (diff)
sysgen: fix build for CONFIG_DEBUG_VIRTUAL=y
Diffstat (limited to 'sysgen')
-rw-r--r--sysgen/fetch.go3
1 files changed, 3 insertions, 0 deletions
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]]};