Add MKMCONTEXT option

This commit is contained in:
Arun Thomas
2011-08-02 13:57:31 +02:00
parent 989934b37c
commit aaefc6f838
6 changed files with 21 additions and 5 deletions

View File

@@ -59,6 +59,12 @@ SRCS+= apic.c apic_asm.S
CPPFLAGS+= -DUSE_APIC
.endif
.if ${USE_MCONTEXT} != "no"
SRCS+= do_mcontext.c
CPPFLAGS+= -DUSE_MCONTEXT
.endif
# These come last, so the profiling buffer is at the end of the data segment
SRCS+= profile.c do_sprofile.c

View File

@@ -43,7 +43,6 @@
#define USE_MEMSET 1 /* write char to a given memory area */
#define USE_RUNCTL 1 /* control stop flags of a process */
#define USE_UPDATE 1 /* update a process into another */
#define USE_MCONTEXT 1 /* enable getting and setting of mach context*/
#define USE_STATECTL 1 /* let a process control its state */
/* Length of program names stored in the process table. This is only used

View File

@@ -37,7 +37,6 @@ SRCS+= \
do_cprofile.c \
do_profbuf.c \
do_vmctl.c \
do_mcontext.c \
do_schedule.c \
do_schedctl.c \
do_statectl.c