Commit Graph

12533 Commits

Author SHA1 Message Date
Ralf Kirchner
12a4d08553 bsp/altera-cyclone-v: Reduce size of nocache heap
Network mbufs and clusters now are cached. Thus the nocache heap can get reduced to 1 MByte.
2014-05-28 15:01:31 +02:00
Ralf Kirchner
bb70bea198 bsp/altera-cyclone-v: Cache mbufs and clusters 2014-05-28 14:59:01 +02:00
Ralf Kirchner
32c8960925 bsp/altera-cyclone-v: Enable L2 cache for network driver 2014-05-28 14:59:01 +02:00
Ralf Kirchner
dda78f43d5 bsp/altera-vyclone-v: Broadcast cache maintenances 2014-05-28 14:59:01 +02:00
Ralf Kirchner
5fd4e35f9b bsp/arm: Broadcast cache maintenances 2014-05-28 14:59:01 +02:00
Daniel Cederman
9f058fb1c2 bsps/sparc: Change tabs to spaces. 2014-05-27 09:46:30 +02:00
Daniel Cederman
c903fc28a9 bsps/sparc: Add copyright and license information 2014-05-27 09:46:22 +02:00
Daniel Cederman
363b1f7f02 bsps/sparc: Make lines in SPARC BSPs adhere to 80 character limit. 2014-05-27 09:46:13 +02:00
Chris Johns
97d0b9bb6a bsp/gdbarmsim: Switch to the standard arm/shared/startup.
Switch to the standard ARM startup code. This requires adding the
standard interrupt code. The interrupt code does nothing at this
point in time. I do not know if the ARM simulator in GDB supports
interrupts.
2014-05-26 22:02:00 +10:00
Chris Johns
b3fb2fff42 bsp/gdbarmsim: Change syscall functions to not clash with RTEMS functions.
The syscall functions overlapped with RTEMS, for example _write, _read, etc.
Change these to be internal to the BSP and avoid any clash with names in
RTEMS. Add support for SWI_Write0.

Change the console driver to use SWI_Write0. This outputs the character
to the host's stdout. Writing to file name 0 is not captured and managed
by GDB's simulation code while the SWI_Write0 is. The managed stdout
data is encapulated in the MI protocol while writes to file handle 0 are
dropped by GDB when in MI mode.
2014-05-26 11:52:02 +10:00
Daniel Hellstrom
6a740c2e70 SPARC: add syscall 1 (exit) function entry point
The exit SPARC system call doesn't have a function entry
point like the others do. This is probably why people use
TA 0x0 instruction directly for shutting down the system.
2014-05-23 09:14:15 -05:00
Daniel Hellstrom
434e7f7bee SPARC: syscall code clean-up and minor optimizations 2014-05-23 09:14:08 -05:00
Joel Sherrill
decff88836 c/src/aclocal/check-smp.m4: Use HAS_SMP not HAS_POSIX_API 2014-05-22 18:05:46 -05:00
Chris Johns
e9d980713c bsp/zynq: Add BSP_ZYNQ_RAM_LENGTH to allow a user to override the RAM length.
The Zynq BSPs can be used with varations of hardware such as memory size.
This option lets you set a length.
2014-05-22 16:53:25 +10:00
Chris Johns
18bd35bcb3 bsps/zynq: Add BSP_ARM_A9MPCORE_UARTCLK to set the UART clock rate.
This value can be found the xparameters.h file generated by the
Xilinx tools.
2014-05-22 16:53:24 +10:00
Sebastian Huber
249eaf9991 bsps/sparc: Fix BSS initialization
Use __bss_start available via %g2 to clear the BSS section.  The usage
of _edata resulted in a copy of [_edata, __bss_start) from ROM to RAM
and then a clear to zero of this area.

Clear now only [__bss_start, _end).
2014-05-14 14:46:20 +02:00
Sebastian Huber
b2d191e833 bsps/sparc: Fix data copy in start procedure
Use the register %g4 for the data content since it must be an even
numbered register due to the std/ldd.  Use the register %g2 for the BSS
start address, so that it can be later re-used for the BSS zero loop.
2014-05-14 14:46:20 +02:00
Ralf Kirchner
c8b7b32329 bsp/altera-caclone-v: Early printk support
Make sure printk can work early during BSP startup.
2014-05-12 15:57:50 +02:00
Sebastian Huber
fa0a9a1893 bsps: Declare bsp_start_on_secondary_processors() 2014-05-12 09:32:20 +02:00
Sebastian Huber
6c5c2f39d0 bsps: Use bsp_start_on_secondary_processor()
Use a standard function for startup on secondary processors.
2014-05-12 09:23:51 +02:00
Sebastian Huber
64a04ac3c7 bsps: Use standard file name for BSP support 2014-05-12 09:01:40 +02:00
Sebastian Huber
ca2dd1ef09 bsp/leon3: Delete unused function 2014-05-12 08:37:05 +02:00
Christian Mauderer
3a3869c449 bsps/sparc: Move flags to grlib header
This enables re-use for other BSPs
2014-05-12 08:37:00 +02:00
Sebastian Huber
89f079469c bsp/gen83xx: Disable interrupt nesting for br_uid
This is necessary for the USB support.
2014-05-08 13:02:44 +02:00
Sebastian Huber
11b05f11d4 score: Fix CPU context usage on SMP
We must not alter the is executing indicator in
_CPU_Context_Initialize() since this would cause an invalid state during
a self restart.

The is executing indicator must be valid at creation time since
otherwise _Thread_Kill_zombies() uses an undefined value for not started
threads.  This could result in a system life lock.
2014-05-08 13:02:40 +02:00
Sebastian Huber
38b59a6d30 score: Implement forced thread migration
The current implementation of task migration in RTEMS has some
implications with respect to the interrupt latency. It is crucial to
preserve the system invariant that a task can execute on at most one
processor in the system at a time. This is accomplished with a boolean
indicator in the task context. The processor architecture specific
low-level task context switch code will mark that a task context is no
longer executing and waits that the heir context stopped execution
before it restores the heir context and resumes execution of the heir
task. So there is one point in time in which a processor is without a
task. This is essential to avoid cyclic dependencies in case multiple
tasks migrate at once. Otherwise some supervising entity is necessary to
prevent life-locks. Such a global supervisor would lead to scalability
problems so this approach is not used. Currently the thread dispatch is
performed with interrupts disabled. So in case the heir task is
currently executing on another processor then this prolongs the time of
disabled interrupts since one processor has to wait for another
processor to make progress.

It is difficult to avoid this issue with the interrupt latency since
interrupts normally store the context of the interrupted task on its
stack. In case a task is marked as not executing we must not use its
task stack to store such an interrupt context. We cannot use the heir
stack before it stopped execution on another processor. So if we enable
interrupts during this transition we have to provide an alternative task
independent stack for this time frame. This issue needs further
investigation.
2014-05-07 14:26:28 +02:00
Sebastian Huber
0034629738 bsps/arm: Declare return types 2014-05-07 09:24:07 +02:00
Sebastian Huber
43ef706873 bsps: Fix BSP_INITIAL_EXTENSION 2014-05-07 09:24:07 +02:00
Joel Sherrill
053abcda22 multiple BSPs: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00
Sebastian Huber
c2ea0ea54d bsp/gen83xx: Add BSP_USB_EHCI_MPC83XX_HAS_ULPI 2014-05-06 14:45:10 +02:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Ralf Kirchner
b0e83e1207 libchip: Add asserts to dwmac driver 2014-04-30 14:53:17 +02:00
Ralf Kirchner
64bc102fbf libchip: Correct netstats message for dwmac driver 2014-04-30 14:53:17 +02:00
Ralf Kirchner
bc9a71ba6a bsp/altera-cyclone-v: Move mbufs and network clusters to uncached RAM 2014-04-30 14:53:14 +02:00
Ralf Kirchner
ff13e0bd97 bsp/altera-cyclone-v: Increase size of nocache region and nocache heap
Increase size of nocache heap in order to be able to move mbufs and clusters of the network driver to uncached RAM
2014-04-30 14:44:47 +02:00
Sebastian Huber
03b7789ec7 score: Statically initialize _ISR_Vector_table 2014-04-29 09:51:22 +02:00
Sebastian Huber
a16af0b367 bsps/mips: Delete unused files
The MIPS port defines CPU_SIMPLE_VECTORED_INTERRUPTS to FALSE.
2014-04-29 09:51:22 +02:00
Sebastian Huber
0b344f3451 bsps/m32r: Fix bsp_specs 2014-04-29 09:50:40 +02:00
Sebastian Huber
ef2645409d bsps/bfin: Fix bsp_specs 2014-04-29 09:50:25 +02:00
Sebastian Huber
6741427a3b bsp/h8sim: Fix linker command file 2014-04-29 08:07:16 +02:00
Sebastian Huber
7c0bd74c87 sparc: Add _CPU_Get_current_per_CPU_control()
Use register g6 for the per-CPU control of the current processor.  The
register g6 is reserved for the operating system by the SPARC ABI.  On
Linux register g6 is used for a similar purpose with the same method
since 1996.

The register g6 must be initialized during system startup and then must
remain unchanged.

Since the per-CPU control is used in all critical sections of the
operating system, this is a performance optimization for the operating
system core procedures.  An additional benefit is that the low-level
context switch and interrupt processing code is now identical on non-SMP
and SMP configurations.
2014-04-28 09:26:19 +02:00
Sebastian Huber
b2ec2d1597 sparc: Optimize context switch
The registers g2 through g4 are reserved for applications.  GCC uses
them as volatile registers by default.  So they are treated like
volatile registers in RTEMS as well.
2014-04-28 09:26:19 +02:00
Joel Sherrill
f412e126d0 mcf52235/configure.ac: Delete junk line 2014-04-24 08:21:00 -05:00
Chris Johns
b74c9cfb76 bootstrap: Sort the contents of the prinstall.am files.
Sorting removed the variations across different host operating systems
and file systems.
2014-04-23 14:32:34 +10:00
Joel Sherrill
1450de0d7e shsim: Correct linking for C++ 2014-04-22 15:12:11 -05:00
Joel Sherrill
25c3208aef gensh4: Correct linking for C++ 2014-04-22 15:12:11 -05:00
Joel Sherrill
851e64321b gensh2: Correct linking for C++ 2014-04-22 15:12:11 -05:00
Joel Sherrill
3191b42681 gensh1: Correct linking for C++ 2014-04-22 15:12:11 -05:00
Joel Sherrill
b6a2e57ba9 score603e: Add rtems_crti 2014-04-22 15:12:11 -05:00
Joel Sherrill
77737ad104 ss555: Add rtems_crti/n 2014-04-22 15:12:10 -05:00