Fix multiboot for ACK-built images
Move the profiling buffer to the end of the data segment
This commit is contained in:
parent
b6f3b7e7f6
commit
361f377493
|
@ -6,7 +6,7 @@ PROG= kernel
|
|||
# first-stage, arch-dependent startup code
|
||||
SRCS= mpx.S
|
||||
SRCS+= start.c table.c main.c proc.c \
|
||||
system.c clock.c utility.c debug.c profile.c interrupt.c \
|
||||
system.c clock.c utility.c debug.c interrupt.c \
|
||||
watchdog.c cpulocals.c
|
||||
|
||||
.ifdef CONFIG_SMP
|
||||
|
@ -38,6 +38,10 @@ MAN=
|
|||
|
||||
.include "system/Makefile.inc"
|
||||
.include "arch/${ARCH}/Makefile.inc"
|
||||
|
||||
# These come last, so the profiling buffer is at the end of the data segment
|
||||
SRCS+= profile.c do_sprofile.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
debug.d: extracted-errno.h extracted-mfield.h extracted-mtype.h
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include <string.h>
|
||||
#include "watchdog.h"
|
||||
|
||||
char sprof_sample_buffer[SAMPLE_BUFFER_SIZE];
|
||||
|
||||
/* Function prototype for the profiling clock handler. */
|
||||
FORWARD _PROTOTYPE( int profile_clock_handler, (irq_hook_t *hook) );
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "arch_watchdog.h"
|
||||
|
||||
#define SAMPLE_BUFFER_SIZE (64 << 20)
|
||||
EXTERN char sprof_sample_buffer[SAMPLE_BUFFER_SIZE];
|
||||
extern char sprof_sample_buffer[SAMPLE_BUFFER_SIZE];
|
||||
|
||||
EXTERN int sprofiling; /* whether profiling is running */
|
||||
EXTERN int sprofiling_type; /* whether profiling is running */
|
||||
|
|
|
@ -34,7 +34,6 @@ SRCS+= \
|
|||
do_sigreturn.c \
|
||||
do_abort.c \
|
||||
do_getinfo.c \
|
||||
do_sprofile.c \
|
||||
do_cprofile.c \
|
||||
do_profbuf.c \
|
||||
do_vmctl.c \
|
||||
|
|
Loading…
Reference in a new issue