From e50cb9b07f7eba6b6f58bc0aef1deb617af39531 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 27 Aug 2004 19:20:42 +0000 Subject: [PATCH] Provide extern declarations for btext and etext when GPROF is defined. These are referenced in subr_prof.c when building a profiling kernel. --- sys/alpha/include/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 64dc773b2bb..98577307f16 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -92,6 +92,11 @@ struct clockframe { #ifdef _KERNEL +#ifdef GPROF +extern char btext[]; +extern char etext[]; +#endif + #define cpu_getstack(td) (alpha_pal_rdusp()) #define cpu_spinwait() /* nothing */ #define get_cyclecount alpha_rpcc