Commit Graph

1585 Commits

Author SHA1 Message Date
Gedare Bloom
2d7029d559 sparc64: remove sparc64_install_isr_entries and its callers.
sparc64_install_isr_entries function is no longer used. Removing it also
allows to use the default bsppredriverhook for usiii and bspstart for niagara.
2014-10-13 15:07:10 -04:00
Hesham ALMatary
37885d5d1e libcpu/or1k: Fix warnings. 2014-10-13 12:02:08 -05:00
Joel Sherrill
e6e63f8728 libcpu/i386/cache.c: Fix warnings 2014-10-13 10:33:36 -05:00
Joel Sherrill
e827199f55 libcpu/bfin/clock: Fix warnings 2014-10-13 10:33:34 -05:00
Joel Sherrill
9fab016dac libcpu/sh/sh7750/clock/ckinit.c: Fix warnings 2014-10-13 10:33:34 -05:00
Joel Sherrill
4172cf1b2b libcpu/sh/sh7045/clock/ckinit.c: Fix warnings 2014-10-13 10:33:33 -05:00
Joel Sherrill
3dc9d80fb3 libcpu/sh/sh7032/clock/ckinit.c: Fix warnings 2014-10-13 10:33:33 -05:00
Joel Sherrill
b6c3e3e609 libcpu/powerpc/mpc5xx/clock/clock.c: Fix warnings 2014-10-13 10:33:33 -05:00
Joel Sherrill
da71123605 libcpu/arm/s3c24xx/clock/clockdrv.c: Fix warnings 2014-10-13 10:33:33 -05:00
Joel Sherrill
19612c16ec libcpu/arm/pxa255/clock/clock.c: Fix warnings 2014-10-13 10:33:33 -05:00
Joel Sherrill
cf6bc1ea6b libcpu/arm/mc9328mxl/clock/clockdrv.c: Fix warnings 2014-10-13 10:33:32 -05:00
Joel Sherrill
175c85b980 libcpu/arm/lpc22xx/clock/clockdrv.c: Fix warnings 2014-10-13 10:33:32 -05:00
Joel Sherrill
b6b0c80c69 libcpu/arm/at91rm9200/clock/clock.c: Fix warnings 2014-10-13 10:33:32 -05:00
Joel Sherrill
5039d92c5d libcpu/powerpc/ppc403: Fix warnings 2014-10-13 10:33:30 -05:00
Joel Sherrill
5105833c50 libcpu/m68k/mcf5272/clock/ckinit.c: Fix warnings 2014-10-13 10:33:29 -05:00
Joel Sherrill
40716bf6fd libcpu/m68k/mcf5206/clock/ckinit.c: Fix warnings 2014-10-13 10:33:29 -05:00
Joel Sherrill
f95f212af4 Remove libcpu/mips/clock - unused code
This code was only referenced for r46xx CPU models. There are
no BSPs currently in the tree with this CPU model. The r46xx
was the original target for the MIPS port and it is likely that
the code has not been used on actual hardware in many years.

All MIPS BSPs successfully built after this was removed.
2014-10-13 10:32:38 -05:00
Joel Sherrill
8b6636f974 mips/clock/ckinit.c: Clean up (may be unused) 2014-10-13 10:32:38 -05:00
Joel Sherrill
714336dde0 libcpu/powerpc/mpc6xx/timer/timer.c: Fix warnings 2014-10-13 10:30:30 -05:00
Joel Sherrill
8536b67bab Move Mongoose-V specific devices into BSP.
Putting the duart in libcpu was very optimistic and presumptuous.
It has never been used again on another SoC and is BSP specific.
2014-10-10 10:16:57 -05:00
Sebastian Huber
d7a267b3c4 bsp/gen5200: Fix warnings 2014-10-10 09:45:51 +02:00
Sebastian Huber
aee5d63d23 bsps/powerpc: Fix warning 2014-10-10 09:45:42 +02:00
Joel Sherrill
78a38fa2ae Eliminate use of /*PAGE and clean up formatting 2014-10-09 10:11:58 -05:00
Joel Sherrill
4e8de7e72a libcpu/powerpc/mpc6xx/clock/c_clock.c: Fix warning and clean up 2014-10-09 10:11:54 -05:00
Joel Sherrill
780eab400d libcpu/powerpc/mpc8xx/clock: Fix warnings and clean up 2014-10-09 10:11:54 -05:00
Sebastian Huber
33ba808288 bsps/mcf5235: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
cf7df0e67a bsps/mcf548x: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
2734617ab6 bsps/mcf548x: Fix warnings 2014-10-09 07:50:37 +02:00
Sebastian Huber
16ed8f7bdf bsps/mcf548x: Fix warnings 2014-10-09 07:50:36 +02:00
Joel Sherrill
f535fe5311 tod.h -> libcsupport like other driver and helper prototype files
This rippled into the handful of files that should have been using
<rtems/tod.h>.
2014-09-16 16:09:13 -05:00
Joel Sherrill
8fbe2e69b5 Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
2014-09-16 16:09:12 -05:00
Hesham ALMatary
c080c3434b or1k: New cache manager.
Implement new cache functions for or1k and create new bspstart function
for or1ksim to initialize instruction and data caches. Also, sim.cfg
is modified to enable/confiure cache units.
2014-09-16 12:46:42 -05:00
Sebastian Huber
c48cf0bd0c score: Rename _BSP_Exception_frame_print()
Rename _BSP_Exception_frame_print() to _CPU_Exception_frame_print() to
be in line with other CPU port functions.
2014-09-11 09:10:16 +02:00
Chris Johns
59990cc975 Regenerate all preinstall.am files.
With this patch the preinstall.am files are in a set order and not
dependent on now perl implements a hash.
2014-08-29 12:48:01 +10:00
Joel Sherrill
b597c0d60c Regenerate all preinstall.am files.
Apparently, at some point automake output changed and these were
not updated.
2014-08-28 08:44:52 -05:00
Chris Johns
5826a1b284 preinstall: Regenerated files differ from the repo. 2014-08-28 10:08:28 +10:00
Hesham ALMatary
eeea9e30a2 libcpu: Add new entry for or1k cpu and include cache manager stubs. 2014-08-25 11:12:20 -05:00
Sebastian Huber
4b104834eb bsp/mpc55xx: Fix comment 2014-08-25 13:40:20 +02:00
Sebastian Huber
f3237a3c3b bsp/mpc55xx: Add defines for MPC5668 2014-08-25 09:30:53 +02:00
Sebastian Huber
0a31483901 bsp/mpc55xx: Limit flash support to MPC55[56]X 2014-08-25 09:11:05 +02:00
Daniel Cederman
e7a42a0cfb score: Add missing define to cache manager 2014-08-25 08:52:05 +02:00
Daniel Cederman
ddbc3f8d83 score: Add SMP support to the cache manager
Adds functions that allows the user to specify which cores that should
perform the cache operation. SMP messages are sent to all the specified
cores and the caller waits until all cores have acknowledged that they
have flushed their cache. If CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING is
defined the instruction cache invalidation function will perform the
operation on all cores using the previous method.
2014-08-22 13:10:59 +02:00
Peter Dufault
dc661c87e1 mpc55xx/misc/flash_support.c: Properly flush cache when writing.
Also cleanup:
    * Remove un-needed interrupt disables.
    * Address errata "e989: FLASH: Disable Prefetch during programming and erase"
    * Use RTEMS_ARRAY_SIZE() macro instead of own macro.
2014-08-20 17:08:23 -05:00
Sebastian Huber
fbda4a8834 score: PR2183: Fix context switch on SMP
Fix context switch on SMP for ARM, PowerPC and SPARC.

Atomically test and set the is executing indicator of the heir context
to ensure that at most one processor uses the heir context.  Break the
busy wait loop also due to heir updates.
2014-07-04 13:17:19 +02:00
Sebastian Huber
c1072919fa Revert "bsps/powerpc: Fix potential relocation truncation"
This reverts commit d9ff8b3e68.

It is not that simple:

https://sourceware.org/ml/binutils/2014-06/msg00062.html

On Fri, Jun 06, 2014 at 01:31:48PM +0200, Sebastian Huber wrote:
> On 2014-06-06 13:23, Sebastian Huber wrote:
> >Ok, so this "cmplwi cr0, rX, ppc_exc_lock_std@sdarel" is illegal,
> >since
> >ppc_exc_lock_std@sdarel is signed and the immediate is unsigned
> >16-bit?  The
> >assembler doesn't issue a warning about this.
> >
> >Exists there a way to rescue this cmplwi hack without relaxing the
> >overflow
> >checks?
>
> Hm, sorry, it was surprisingly simple.  This works:
>
> "cmplwi cr0, rX, ppc_exc_lock_std@sdarel@l"
>
> I was not aware that you can add several @ in a row.

That is the wrong thing to use here.  sdarel@l translates to a VLE
reloc which applies to a split 16-bit field in VLE insns.

You want
 cmpwi cr0, rX, ppc_exc_lock_std@sdarel
to properly compare a 16-bit signed number from sym@sdarel.

Note that the assembler does error if you write something like
 cmplwi 3,-30000
or
 cmpwi 3,40000
so what the linker is now doing is extending this behaviour to link
time.
2014-06-06 14:54:37 +02:00
Sebastian Huber
d9ff8b3e68 bsps/powerpc: Fix potential relocation truncation
See also

https://sourceware.org/ml/binutils/2014-06/msg00059.html

On Fri, Jun 06, 2014 at 11:01:10AM +0200, Sebastian Huber wrote:
> I performed a git bisect and found this:
>
> 93d1b056cb396d6468781fe0e40dd769891bed32 is the first bad commit
> commit 93d1b056cb396d6468781fe0e40dd769891bed32
> Author: Alan Modra <amodra@gmail.com>
> Date:   Tue May 20 11:42:42 2014 +0930
>
>     Rewrite ppc32 backend .sdata and .sdata2 handling

Hmm, I'm surprised that your git bisect found this patch.  Was
_SDA_BASE_ set differently before this?

>                 0x00000000000dfc00                _SDA_BASE_
>                 0x00000000000d7f78                ppc_exc_lock_std

>      4b8:       28 05 00 00     cmplwi  r5,0
>                         4ba: R_PPC_SDAREL16     ppc_exc_lock_std

ppc_exc_lock_std@sdarel will be calculating 0xd7f78 - 0xdfc00
which is 0xf...fff8378, and that falls foul of

commit 86c9573369616e7437481b6e5533aef3a435cdcf
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Mar 8 13:05:06 2014 +1030

    Better overflow checking for powerpc32 relocations

cmplwi has an *unsigned* 16-bit field, and we now check the overflow
properly.

I wonder how many more of these we'll hit, and whether the uproar will
be enough that I'll be forced to relax the checks?
2014-06-06 13:39:55 +02:00
Sebastian Huber
dc44de7686 bsps/arm: Fix TLB invalidation for ARMv7-A 2014-06-06 08:02:10 +02:00
Sebastian Huber
66a2409d30 bsps/arm: Add ARM_CP15_TEXT_SECTION
Allow users of this header file to optionally place the inline functions
into a non-standard section.
2014-06-05 14:55:16 +02:00
Sebastian Huber
d0a8f513f5 bsps/arm: Add all level data cache invalidation 2014-06-05 14:55:16 +02:00
Sebastian Huber
def03aecef bsps/arm: Typo 2014-06-05 14:55:16 +02:00