[rtems commit] smp: Rely on BSS initialization
Sebastian Huber
sebh at rtems.org
Wed May 29 09:04:02 UTC 2013
Module: rtems
Branch: master
Commit: a29704eb04d03eaf526627a2d1fceb075b811cf7
Changeset: http://git.rtems.org/rtems/commit/?id=a29704eb04d03eaf526627a2d1fceb075b811cf7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 13 15:39:51 2013 +0200
smp: Rely on BSS initialization
The _Per_CPU_Information is part of the BSS segment and must be zero
initialized. Some processors may already poll some per-CPU fields and
wait for a state change at this point.
---
cpukit/score/src/percpu.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c
index 7027093..0fcabbe 100644
--- a/cpukit/score/src/percpu.c
+++ b/cpukit/score/src/percpu.c
@@ -35,11 +35,6 @@
size_t size;
uintptr_t ptr;
- /*
- * Initialize per CPU structures.
- */
- size = (_SMP_Processor_count) * sizeof(Per_CPU_Control);
- memset( _Per_CPU_Information, '\0', size );
/*
* Initialize per cpu pointer table
More information about the vc
mailing list