10790 Commits

Author SHA1 Message Date
afpr
7807c8e1ca Implemented the bsp_clock_nanoseconds_since_last_tick routine for pasim. 2013-10-24 16:32:42 +01:00
afpr
f417cc8f99 Added get_cpu_freq function to read out the CPU frequency. 2013-10-04 09:43:49 +01:00
afpr
a655f4dc7c Defined a linker symbol for the CPU frequency. 2013-10-01 11:33:30 +01:00
afpr
02d3da8f00 Implemented benchmark timer (for the testsuite). 2013-09-24 15:27:56 +01:00
Stefan Hepp
38527d9752 Commit bootstrapped blackfin m4 file 2013-09-19 13:09:23 +02:00
afpr
38496ed3ab Updated readme. 2013-09-18 12:49:02 +01:00
afpr
f4d307fb5c Updated testsuite (replaced posix obsolete functions). 2013-09-13 12:13:07 +01:00
afpr
35d143696f Updated interrupt return registers. 2013-09-03 09:38:55 +01:00
afpr
a6ace744e6 Implemented clock ISR.
Fixed _CPU_Context_Initialize, _CPU_Context_Switch and _CPU_Context_Restore
(stack and shadow stack management).

Fixed linker missing symbols.
2013-08-28 18:04:01 +01:00
afpr
b9765e1de1 Fixed linker missing symbols.
Fixed _CPU_Context_Switch and _CPU_Context_Restore (set function input arguments).
2013-08-22 18:35:19 +01:00
afpr
988217253a Fixed linkcmds.
Fixed linker missing symbols.

Fixed compilation flags.

Fixed hard_reset, bsp_get_work_area, CPU_Context_Switch and CPU_Context_Restore.

Fixed console functions.
2013-08-02 12:39:42 +01:00
afpr
f6962ce139 Adapted make-exe rules of testsuites to the patmos-clang compiler toolchain.
Improved startup code.
2013-07-05 13:54:09 +01:00
afpr
40d91e9d2d Added readme.txt to guide users through the RTEMS installation and usage processes.
Deleted benchmark timer code (timer.c).
2013-07-01 18:51:00 +01:00
afpr
f5ccbacae1 Defined RAM variables (start address, size) in linkcmds file for the Pasim BSP. 2013-07-01 17:50:24 +01:00
afpr
3f42b0f38d Ran bootstrap and bootstrap -p scripts.
Added definitions of STDOUT_FILENO and STDERR_FILENO in bsp.h.

Removed the tools subdirectory in c/src/lib/libbsp/patmos/pasim. The tools subdirectory provide additional tools that aid in using the target board, namely a script to automate running the RTEMS Test Suites on the BSP.

For functions boot_card and abort_trap, included the __attribute__ ((used)) attribute in the file headers, and removed the attribute in the actual function declaration.
2013-06-28 15:00:24 +01:00
afpr
a2990ea7b8 Added the linkcmds.base file to the commit.
Fixed some hard_reset code, mostly related to the assembly nomenclature.

In CPU_Context_Switch and CPU_Context_Restore routines, added instruction to reset r0, and spilled cache in CPU_Context_Restore.

Reviewed the CPU_Context_Initialize routine.

Removed the CPU_Minimum_Stack structure from the Patmos CPU, and reviewed all the Patmos context areas (general, floating point, interrupt). Removed structure CPU_Trap_table_entry, macro _CPU_Context_Initialization_at_thread_begin. Adapted the _CPU_Fatal_halt macro to Patmos.
2013-06-27 19:02:39 +01:00
afpr
236e375111 Fixed the linkcmds file for the Pasim BSP and included a base linkcmds file for the Patmos CPU.
Added (1) zeroing out the uninitialized data section .bss and (2) copy the initialized data from ROM to RAM to the hard_reset function in start.S.
2013-06-26 19:28:55 +01:00
afpr
bdcc366d63 Updated configuration files to leave deleted files out of the build process (pci, shmm, spurious, bspidle, ...). 2013-06-25 18:52:50 +01:00
afpr
7a34a658b1 Removed spurious trap handler from the Patmos CPU.
Substituted the whole timer.c with the content retrieved from the no_cpu/no_bsp folder.

Removed the timing test suite (times file) from the Pasim BSP.

Added bsp_specs to the Pasim BSP.
2013-06-25 18:30:09 +01:00
afpr
84591aa5f9 Substituted the whole ckinit.c with the content retrieved from the no_cpu/no_bsp folder.
Fixed the storage of the hard_reset function in register r30 in the hard_reset function.

Removed function bspidle.S that defines the idle thread from the Pasim BSP.

Removed snooping function from bspstart.c in Pasim.
2013-06-25 18:29:08 +01:00
afpr
1151b96bc9 Fixed the start.S file for the Patmos CPU, namely hard_reset and exit functions, as well as the starting addresses present in pasim.h 2013-06-24 18:50:54 +01:00
afpr
b1ef2d75f0 Changed debugputs.c, console.c and pasim.h in libbsp/patmos/pasim to add TTY driver support for the Pasim bsp 2013-06-24 17:01:20 +01:00
afpr
8af38bc5b3 Removed pci and shared memory management from the Patmos CPU 2013-06-18 18:18:34 +01:00
afpr
bb0f6beb9e Initial support for the Patmos BSP 2013-06-18 10:49:50 +01:00
Daron Chabot
833eeae358 Add c++ guard to header. 2013-05-16 11:47:09 +02:00
Ralf Corsépius
c160bc2e97 Remove stray '/'. 2012-10-10 14:49:19 +02:00
Gedare Bloom
d692342a01 Delete lingering bspopts.h.in file 2012-08-09 10:26:07 -04:00
Ralf Corsépius
67aeb83f27 Use http://www.rtems.org/bugzilla as bug-URL. 2012-08-09 09:49:13 -04:00
Sebastian Huber
57d29cd5a9 bsp/genmcf548x: Enable FPU in BSP startup code 2012-05-02 10:27:08 +02:00
Sebastian Huber
eeb965b325 bsp/genmcf548x: Fix BSP options 2012-05-02 10:26:45 +02:00
Joel Sherrill
3f85deb858 PR 2015 - LEON3: make SHM driver configurable using weak symbols
PR 2015/bsps

Since the configuration struct is always present one can let
DATA initialize it to reduce footprint, at the same time it
is made weak to let the user able to configure the SHM driver
without editing the driver code.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-17 14:25:13 -06:00
Joel Sherrill
43a26e8a02 PR 1962/bsps - MVME162 Console Corrections and Improvements
* console/console.c: char_ready() was never returning true so console
	never processed input data
	* console/console.c: added printk() support to default device
	* include/bsp.h: Added #define for MOT_162BUG_VEC_ADDRESS
	* startup/bspclean.c: Modified to use MOT_162BUG_VEC_ADDRESS
	* startup/bspstart.c: Modified to use MOT_162BUG_VEC_ADDRESS
	* make/custom/mvme162.cfg: Modified to use "RTEMS_CPU_MODEL=68lc040"
	and "CPU_CFLAGS = -mcpu=68040 -msoft-float" so BSP will always
	work with all board variations.
	* README: Added notes on user required configuration changes and
	information about board models and variants
	* README.models: New file that contains a detailed list of MVME162
	models and variants.

Signed-off-by: Vic Hoover <victor.hoover.ctr@navy.mil>
2012-02-02 14:08:36 -06:00
Joel Sherrill
b5902b8ff7 PR 2011/networking - GRETH: performance improvements and one bugfix
GRETH driver updated, 10-15% performance improvements for GBIT MAC,
unnecessary RX interrupts not taken which under heavy load saves approx.
1500 interrupts/s, one task removed saving about 5kb memory and 1 bug
solved.

BUG: RX interrupt was enabled before the RX-daemon was created which could
result in a faulty call to rtems_event_send.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 13:06:51 -06:00
Joel Sherrill
1fe02576f0 PR 2011/networking GRETH: Moved print to remove potential deadlock
Deadlock may arise when the EDCL bug link is used to tunnel
console output over Ethernet, when Ethernet is down one should
avoid using console (only during debugging of LEON targets)

Author: Marko Isomaki <marko@gaisler.com>
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 13:04:49 -06:00
Daniel Hellstrom
9591970856 LEON3: change d-cache snoop detect implementation
PR 2010/bsps

The previous code only checked if d-cache snooping was implemented,
however snooping may be available but not enabled which may lead
to driver bugs.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 12:08:01 -06:00
Joel Sherrill
45eaf8ccb4 LEON3: CPU index intialization moved to bspstart.c
2009/bsps

All LEON3/4 systems have a CPU-id, if on a single-CPU system the
ID is always zero. On a multicore system it ranges from 0 to 15.

The CPU index should always by updated even in a non-MP RTEMS OS
since the CPU running RTEMS may not always be CPU0. For example
when RTEMS runs on CPU1 and Linux on CPU0 in a mixed ASMP system.

The old code executed within the IRQ controller initialization code
makes no sense since the ASR register is a CPU register, it has
nothing to do with AMBA initialization either.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 11:22:19 -06:00
Daniel Hellstrom
954099e462 LEON3: fix compiler warning in SHM driver
PR 2008/bsps

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 10:33:23 -06:00
Joel Sherrill
6698f2714f Add .git ignore. Remove .cvsignore 2012-02-02 10:17:12 -06:00
Joel Sherrill
3c5c7dd963 Add .git ignore. Remove .cvsignore 2012-02-02 10:16:26 -06:00
Daniel Hellstrom
9530716cd4 LEON3BSP MP: may wake one more CPU than expected
The SHM code always wakes one CPU more that configured, however
this has never been a problem since RTEMS will be running on all CPUs
or only two cores were available.

PR 2006/bsps

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 10:09:46 -06:00
Joel Sherrill
0ae9ee1da4 Upgrade to 4.10.2 2011-12-13 14:34:19 +00:00
Joel Sherrill
5b6f5447c5 2011-11-09 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 1934/bsps
	* libchip/serial/ns16550.c: Change to unsigned variable.
2011-11-09 20:51:08 +00:00
Sebastian Huber
391f35c8ff 2011-08-15 Julien Delange <julien.delange@gmail.com>
* irq/irq.c: Removed printk() before the interrupt initialization
	because it somehow destroys the interrupt context.
	* make/custom/nds.cfg: Enable Thumb interwork.
	* startup/bspstart.c: Set default exception handler.
2011-08-15 08:14:31 +00:00
Joel Sherrill
ca356b5d3a 2011-07-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1845/bsps
	* make/custom/rtl22xx_t.cfg: Remove unused line with what is now
	invalid syntax.
2011-07-22 13:12:26 +00:00
Joel Sherrill
395fd11d2e 2011-07-21 Jorge Lopez <jorge.lopez.trescastro@esa.int>
PR 1766/bsps
	* clock/ckinit.c: Add missing read of Timer_Counter_1.
2011-07-21 20:52:27 +00:00
Joel Sherrill
5c2346afa8 Upgrade to 4.10.1 2011-07-21 17:48:36 +00:00
Joel Sherrill
3d2f5a0e79 2011-07-20 Till Straumann <strauman@slac.stanford.edu>
PR 1837/bsps
	* shared/motorola/motorola.c, shared/motorola/motorola.h: Add MVME2400
	board with 750 CPU to list of supported Motorola boards.
2011-07-20 16:39:45 +00:00
Joel Sherrill
3460d8b5a8 formatting. 2011-07-20 13:22:30 +00:00
Joel Sherrill
7805594ba8 2011-07-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* .cvsignore, include/.cvsignore: New files.
2011-07-14 19:25:38 +00:00
Joel Sherrill
3b06edafb8 2011-07-14 Till Straumann <strauman@slac.stanford.edu>
PR 1833/bsps
	* ne2000/ne2000.c: Addition of multicast support disabled broadcast
	reception. Patch also includes support to work on big endian CPUs.
2011-07-14 14:45:05 +00:00