From 41f7eadf3e5e6b42ecd54c53adab112253122e34 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 9 Sep 2005 09:03:21 +0000 Subject: 2005-09-09 Martin Hunt * runtime.h: Add arith.c * recreate_links: Add arith.c * emul.h: Define jiffies so arith.c will compile. --- runtime/user/ChangeLog | 6 ++++++ runtime/user/emul.h | 3 +++ runtime/user/recreate_links | 1 + runtime/user/runtime.h | 1 + 4 files changed, 11 insertions(+) (limited to 'runtime') diff --git a/runtime/user/ChangeLog b/runtime/user/ChangeLog index 357bb422..8b683da4 100644 --- a/runtime/user/ChangeLog +++ b/runtime/user/ChangeLog @@ -1,3 +1,9 @@ +2005-09-09 Martin Hunt + + * runtime.h: Add arith.c + * recreate_links: Add arith.c + * emul.h: Define jiffies so arith.c will compile. + 2005-08-31 Martin Hunt * emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup. diff --git a/runtime/user/emul.h b/runtime/user/emul.h index 2821e8ac..fa8d9fb3 100644 --- a/runtime/user/emul.h +++ b/runtime/user/emul.h @@ -19,6 +19,9 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) #define for_each_cpu(cpu) \ for (cpu = 0; cpu < NR_CPUS; cpu++) +// just to eliminate compile errors +unsigned long volatile __jiffy_data jiffies = 12345678; + int _processor_number = 0; #define smp_processor_id() _processor_number #define get_cpu() _processor_number diff --git a/runtime/user/recreate_links b/runtime/user/recreate_links index c29c8e18..a45b5608 100755 --- a/runtime/user/recreate_links +++ b/runtime/user/recreate_links @@ -15,3 +15,4 @@ ln -s ../counter.c . ln -s ../stat.c . ln -s ../stat.h . ln -s ../stat-common.c . +ln -s ../arith.c . diff --git a/runtime/user/runtime.h b/runtime/user/runtime.h index 1d6d5307..b13f2cc6 100644 --- a/runtime/user/runtime.h +++ b/runtime/user/runtime.h @@ -48,5 +48,6 @@ void exit(int status); #include "io.c" #include "print.c" #include "string.c" +#include "arith.c" #endif /* _RUNTIME_H_ */ -- cgit