| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ libbsp/sparc/shared/include/pci.h was largely a copy of
an older version of the cpukit pci.h. Removed much of the
contents and included <rtems/pci.h>.
+ sparc/*/pci*.c - Move to <rtems/pci.h> required updating
to use uint32_t for dword accesses.
+ Rename PCI_MULTI_FUNCTION to PCI_HEADER_TYPE_MULTI_FUNCTION
+ Define PCI_HEADER_TYPE_MULTI_FUNCTION in cpukit pci.h and remove
PCI_MULTI_FUNCTION definitions in C files.
+ Move PCI_INVALID_VENDORDEVICEID definitions from various C files
to cpukit pci.h
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some register layout definitions for LEON3 reside in ambapp.h which
does not really has anything to do with device registers. The
register structures has been incorrectly named LEON3_*, the cores
are not only used on LEON3 but on LEON4 and perhaps on LEON5 when
that day comes. Some structures has been renamed according to the
GRLIB core name instead, which CPU that actually use it is not
relevant. Drivers has been updated with the new names.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
|
|
|
|
|
|
| |
The drivers are updated to use the new AMBA layer, however the
backwards-compatibility interface (ambapp_old) is used.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old layer had some limitations/problems for multiple AHB
buses since the data structure containing all AMBA devices
were allocated before scanning.
The new layer create devices as they are found and memory is
allocated using malloc() or bsp_early_malloc() during booting.
The old 8 functions for finding a specific AHB-Slave or
APB-Slave device has been replaced with one function,
ambapp_for_each(), which iterates over all devices matching
the specified search options and calls a user provided
function. The new way lowers the footprint and makes searching
more flexible.
The frequency information is now supported, if the frequency
of one device is reported by the user.
More AHB-to-AHB bridges are supported.
The API has been split into several parts in order to lower the
footprint.
The API also introduces the AMBAPP CORE concept, where one
ambapp_core can be created from one AHB Master, AHB Slave
and one APB Slave, at least one device is required for creating
a core.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The implementation use IRQ number instead of vector number since
some IRQs does not have a unique vector, for example the extended
interrupts all enter the same trap vector entry.
Added support for the LEON3 extended interrupt controller when using
the shared IRQ layer.
ERC32 patches untested.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Regenerate
|
|
|
|
|
|
|
|
|
|
|
|
| |
If bsp_early_malloc() is called early during boot room will be
allocated after BSS END. If the function is called after boot
is will call malloc() instead. The returned memory is not freeable
and always 8-byte aligned.
If the bsp_early_malloc() isn't called the function is not
dragged in and the workspace will be unmodified in size.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
|
|
|
|
| |
* shared/can/occan.c: Comment out unused var "tmp".
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1933/cpukit
* shared/irq_asm.S: From code inspection I have found the following
issues (most SMP), and some improvements in irq_asm.S. I would need a
long test with interrupts to verify the interrupt handler better,
however I can not see that these patches hurt. Please see comment per
hunk below, One should go through the file to indent delay-slots
correctly, I have fixed some in the patch areas. An extra space is
added in front of delay slots to indicate a delay slot.
|
|
|
|
|
|
| |
PR 1801
* shared/irq_asm.S: Modifications to synch the sparc with the smp
working tree.
|
|
|
|
|
|
|
| |
Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1801/bsps
* shared/start.S: Add SMP support to LEON3 BSP.
|
|
|
|
|
| |
PR 1729/cpukit
* shared/irq_asm.S: New file.
|
|
|
|
|
|
| |
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/occan.c,
shared/spw/grspw.c, shared/uart/apbuart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
|
|
|
|
| |
* shared/bspgetworkarea.c: Formatting.
|
|
|
|
| |
* shared/startup/linkcmds.base: New file.
|
|
|
|
|
|
| |
* shared/spw/grspw_rasta.c: Guard prototype of
grspw_rasta_calc_memoffs in #ifdef GRSPW_STATIC_MEM to avoid
warning.
|
| |
|
|
|
|
|
| |
PR 1483/cpukit
* shared/include/pci.h: Rename pci_config into rtems_pci_config_t.
|
| |
|
|
|
|
|
| |
* shared/bsppretaskinghook.c: New file. Was really common.
* shared/bspstart.c: Removed. Was really leon2 specific.
|
|
|
|
| |
* shared/bspgetworkarea.c: Add debug prints of memory information.
|
|
|
|
|
| |
* shared/include/pci.h: Add prototypes for BusCountPCI(void),
init_pci(void).
|
|
|
|
| |
* shared/include/pci.h: Revert extern inline patch.
|
|
|
|
| |
* shared/include/pci.h: Change extern inline to static inline.
|
|
|
|
| |
* shared/start.S: Fix comment.
|
|
|
|
|
|
| |
* shared/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
bsp_get_work_area() since the work area is larger than a single
allocatable object.
|
|
|
|
| |
* shared/start.S: Checked and OK.
|
|
|
|
| |
* shared/start/start.S: Update for boot_card command line change.
|
|
|
|
|
|
| |
PR 1386/bsps
* shared/start.S: Stack space not correctly initialized. Causes
failures on unoptimized applications.
|
|
|
|
| |
* libchip/serial/ns16550_p.h: Remove prototype with no implementation.
|
|
|
|
|
|
| |
* shared/bspgetworkarea.c: Change size_t to ssize_t on
bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits
which would limit the work area to 64K.
|
|
|
|
| |
* shared/bspclean.c: Removed.
|
|
|
|
|
| |
* shared/bspstart.c: Remove unnecessary includes of rtems/libcsupport.h
and rtems/libio.h.
|
|
|
|
|
|
| |
* shared/bspstart.c: Use shared bsp_get_work_area() in its own file and
rely on BSP Framework to perform more initialization.
* shared/bspgetworkarea.c: New file.
|
| |
|
|
|
|
| |
added support for an optional separate heap area.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* shared/bspstart.c, shared/start.S: Add capability for bootcard.c BSP
Initialization Framework to ask the BSP where it has memory for the
RTEMS Workspace and C Program Heap. These collectively are referred
to as work area. If the BSP supports this, then it does not have to
include code to split the available memory between the two areas.
This reduces the amount of code in the BSP specific bspstart.c file.
Additionally, the shared framework can initialize the C Library, call
rtems_debug_enable(), and dirty the work area memory. Until most/all
BSPs support this new capability, if the BSP supports this, it should
call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
When the transition is complete, this autoconf macro can be removed.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* shared/bspstart.c: Refactored and renamed initialization routines to
rtems_initialize_data_structures, rtems_initialize_before_drivers,
rtems_initialize_device_drivers, and
rtems_initialize_start_multitasking. This opened the sequence up so
that bootcard() could provide a more robust and flexible framework
which is easier to explain and understand. This also lays the
groundwork for sharing the division of available memory between the
RTEMS workspace and heap and the C library initialization across all
BSPs.
|
|
|
|
| |
* shared/start.S: Spacing.
|
|
|
|
|
| |
* shared/bspstart.c: Eliminate copies of the Configuration Table. Use
the RTEMS provided accessor macros to obtain configuration fields.
|
|
|
|
| |
* shared/include/grcan_spwrtc.h: Removed.
|
|
|
|
| |
* shared/include/ambapp.h: Sync head and 4.8 branch.
|
|
|
|
|
|
| |
* shared/bspstart.c: Move interrupt_stack_size field from CPU Table to
Configuration Table. Eliminate CPU Table from all ports. Delete
references to CPU Table in all forms.
|
|
|
|
|
|
|
|
|
| |
* shared/bspstart.c: Moved most of the remaining CPU Table fields to
the Configuration Table. This included pretasking_hook,
predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace,
extra_mpci_receive_server_stack, stack_allocate_hook, and
stack_free_hook. As a side-effect of this effort some multiprocessing
code was made conditional and some style clean up occurred.
|
|
|
|
|
|
| |
* shared/include/grspw.h, shared/spw/grspw.c: GRSPW SpaceWire Driver.
Fixes typecast to volatile integer instead of to integer. Added
scanning for GRSPW2 Core, The GRSPW2 core is run in legacy mode.
|
|
|
|
|
|
|
| |
* shared/can/occan.c: LEON2/3 OCCAN CAN driver. Fixes typecast to
volatile integer where needed. Fixes bug where closing the driver and
opening it again could make the driver not starting transmission due
to the software fifo was not cleared.
|
|
|
|
|
|
|
|
|
| |
* shared/can/grcan.c, shared/can/grcan_rasta.c,
shared/include/ambapp.h: GRCAN CAN driver. Fixes Interrupt
enabling/disabling in the driver, interrupt may not be restored
correctly. Implements the baud rate calculation routine. Removed
unnecessary printk. Fixed scanning to support GRCAN and GRHCAN
hardware. Added GRCAN device number to ambapp.h.
|