[rtems commit] bsp/sparc: Flush icache before first time enabling interrupts

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 25 09:16:16 UTC 2014


This breaks at least SIS with --enable-smp:

gmake[6]: Entering directory 
`/scratch/git-rtems-testing/rtems/build-sparc-sis-rtems/sparc-rtems4.11/c/sis/testsuites/samples/hello'
sparc-rtems4.11-gcc -B../../../../../sis/lib/ -specs bsp_specs -qrtems 
-DHAVE_CONFIG_H -I. 
-I../../../../../../../rtems/c/src/../../testsuites/samples/hello -I.. 
-mcpu=cypress -O0 -g -ffunction-sections -fdata-sections -Wall 
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes 
-Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o 
../../../../../../../rtems/c/src/../../testsuites/samples/hello/init.c
mv -f .deps/init.Tpo .deps/init.Po
sparc-rtems4.11-gcc -B../../../../../sis/lib/ -specs bsp_specs -qrtems 
-mcpu=cypress -O0 -g -ffunction-sections -fdata-sections -Wall 
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes 
-Wnested-externs  -Wl,--gc-sections  -mcpu=cypress   -o hello.exe init.o
../../../../../sis/lib/librtemscpu.a(libscore_a-threadstartmultitasking.o): In 
function `_Thread_Start_multitasking':
/scratch/git-rtems-testing/rtems/build-sparc-sis-rtems/sparc-rtems4.11/c/sis/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/threadstartmultitasking.c:78: 
undefined reference to `_BSP_Start_multitasking'


On 22/08/14 13:07, Daniel Hellstrom wrote:
> Module:    rtems
> Branch:    master
> Commit:    54f3476e2493a957efb0e30c77226d496e7fc5a1
> Changeset: http://git.rtems.org/rtems/commit/?id=54f3476e2493a957efb0e30c77226d496e7fc5a1
>
> Author:    Daniel Cederman <cederman at gaisler.com>
> Date:      Thu Jul  3 11:18:55 2014 +0200
>
> bsp/sparc: Flush icache before first time enabling interrupts
>
> A secondary processor might miss changes done to the trap table
> if the instruction cache is not flushed. Once interrupts are enabled
> any other required cache flushes can be ordered via the cache
> manager.


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list