From 676c6174c50aaf1d501a5b582276364dc52001d1 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 13 May 2010 17:07:47 +0000 Subject: [PATCH] Add semaphore to benchmark test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3698 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../benchmark/kernel_footprint/cfg/cfg_proc.h | 1 - .../benchmark/kernel_footprint/cfg/cfg_sem.h | 2 +- .../kernel_footprint/kernel_footprint.mk | 5 +-- .../benchmark/kernel_footprint/project.bertos | 34 +++++++++++-------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_proc.h b/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_proc.h index 18d59eb4..ab1a4680 100644 --- a/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_proc.h +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_proc.h @@ -32,7 +32,6 @@ * * \brief Kernel configuration parameters * - * \version $Id$ * \author Bernie Innocenti */ diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_sem.h b/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_sem.h index 2a6de7a9..86ed110d 100644 --- a/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_sem.h +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint/cfg/cfg_sem.h @@ -43,6 +43,6 @@ * Re-entrant mutual exclusion primitives. * $WIZ$ type = "autoenabled" */ -#define CONFIG_KERN_SEMAPHORES 0 +#define CONFIG_KERN_SEMAPHORES 1 #endif /* CFG_SEM_H */ diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint/kernel_footprint.mk b/boards/at91sam7x-ek/benchmark/kernel_footprint/kernel_footprint.mk index bb4cf3cd..4aa72137 100644 --- a/boards/at91sam7x-ek/benchmark/kernel_footprint/kernel_footprint.mk +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint/kernel_footprint.mk @@ -21,13 +21,14 @@ kernel_footprint_HW_PATH = boards/at91sam7x-ek kernel_footprint_WIZARD_CSRC = \ bertos/cpu/arm/drv/timer_arm.c \ bertos/kern/signal.c \ - bertos/kern/kfile.c \ + bertos/mware/event.c \ + bertos/kern/sem.c \ bertos/cpu/arm/drv/sysirq_at91.c \ bertos/struct/heap.c \ bertos/mware/formatwr.c \ bertos/cpu/arm/drv/timer_at91.c \ bertos/drv/timer.c \ - bertos/mware/event.c \ + bertos/kern/kfile.c \ bertos/kern/proc.c \ bertos/benchmark/kernel_footprint.c \ bertos/mware/hex.c \ diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint/project.bertos b/boards/at91sam7x-ek/benchmark/kernel_footprint/project.bertos index 76669ff1..9336ef95 100644 --- a/boards/at91sam7x-ek/benchmark/kernel_footprint/project.bertos +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint/project.bertos @@ -50,32 +50,36 @@ aS'formatwr' p25 aS'kfile' p26 -aS'msg' +aS'semaphores' p27 -aS'kernel_footprint' +aS'msg' p28 -aS'heap' +aS'kernel_footprint' p29 -aS'signal' +aS'heap' p30 -aS'timer' +aS'signal' p31 -asS'CPU_NAME' +aS'timer' p32 -VAT91SAM7X256 +asS'CPU_NAME' p33 -sS'PROJECT_HW_PATH' +VAT91SAM7X256 p34 -S'../..' +sS'PROJECT_HW_PATH' p35 -sS'PROJECT_SRC_PATH' +S'../..' p36 -S'.' +sS'PROJECT_SRC_PATH' p37 -sS'PRESET' +S'.' p38 +sS'PRESET' +p39 I01 sS'OUTPUT' -p39 -(lp40 -s. \ No newline at end of file +p40 +(lp41 +S'codelite' +p42 +as. \ No newline at end of file -- 2.25.1