| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This patch is a part of the BSP source reorganization.
Update #3285.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A speciality of the RTEMS build system was the make preinstall step. It
copied header files from arbitrary locations into the build tree. The
header files were included via the -Bsome/build/tree/path GCC command
line option.
This has at least seven problems:
* The make preinstall step itself needs time and disk space.
* Errors in header files show up in the build tree copy. This makes it
hard for editors to open the right file to fix the error.
* There is no clear relationship between source and build tree header
files. This makes an audit of the build process difficult.
* The visibility of all header files in the build tree makes it
difficult to enforce API barriers. For example it is discouraged to
use BSP-specifics in the cpukit.
* An introduction of a new build system is difficult.
* Include paths specified by the -B option are system headers. This
may suppress warnings.
* The parallel build had sporadic failures on some hosts.
This patch removes the make preinstall step. All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.
The new cpukit include directories are:
* cpukit/include
* cpukit/score/cpu/@RTEMS_CPU@/include
* cpukit/libnetworking
The new BSP include directories are:
* bsps/include
* bsps/@RTEMS_CPU@/include
* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include
There are build tree include directories for generated files.
The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.
The "bootstrap -p" option was removed. The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.
Update #3254.
|
|
|
|
| |
Update #3254.
|
|
|
|
| |
Update #3082.
|
|
|
|
| |
Update #2803.
|
|
|
|
|
|
|
|
|
| |
Rename _ISR_Disable() into _ISR_Local_disable(). Rename _ISR_Enable()
into _ISR_Local_enable(). Remove _Debug_Is_owner_of_giant().
This is a preparation to remove the Giant lock.
Update #2555.
|
|
|
|
| |
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This partially reverts commit 1215fd4d9426a59d568560e9a485628560363133.
In order to support profiling of SMP locks and provide a future
compatible SMP locks API it is necessary to add an SMP lock destroy
function. Since the commit above adds an SMP lock to each chain control
we would have to add a rtems_chain_destroy() function as well. This
complicates the chain usage dramatically. Thus revert the patch above.
A global SMP lock for all chains is used to implement the protected
chain operations.
Advantages:
* The SAPI chain API is now identical on SMP and non-SMP
configurations.
* The size of the chain control is reduced and is then equal to the
Score chains.
* The protected chain operations work correctly on SMP.
Disadvantage:
* Applications using many different chains and the protected operations
may notice lock contention.
The chain control size drop is a huge benefit (SAPI chain controls are
66% larger than the Score chain controls). The only disadvantage is not
really a problem since these applications can use specific interrupt
locks and unprotected chain operations to avoid this issue.
|
|
|
|
|
|
|
|
| |
Add ISR lock to chain control for proper SMP protection. Replace
rtems_chain_extract() with rtems_chain_explicit_extract() and
rtems_chain_insert() with rtems_chain_explicit_insert() on SMP
configurations. Use rtems_chain_explicit_extract() and
rtems_chain_explicit_insert() to provide SMP support.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add and use rtems_blkdev_request_done(). Block device transfer requests
must signal the completion status now with rtems_blkdev_request_done().
The return value of the block device IO control will be ignored for
transfer requests.
The first parameter of rtems_blkdev_request_cb is now the transfer
request structure.
Renamed rtems_blkdev_request::req_done to rtems_blkdev_request::done to
break third party drivers at compile time, otherwise this API change
would result in runtime errors.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* libchip/ide/ata.c: Make ata_interrupt_on, ata_interrupt_off,
ata_interrupt_isOn static.
|
|
|
|
|
| |
PR 1975/misc
* libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
|
|
|
|
|
| |
* libchip/ide/ata.c: Make ata_interrupt_handler static.
* libchip/ide/ide_controller.c: Include libchip/ide_ctrl.h.
|
|
|
|
| |
* libchip/ide/ata.c: Fix spelling.
|
|
|
|
| |
* libchip/ide/ata.c: Do not violate chain API.
|
|
|
|
| |
* libchip/ide/ata_internal.h: C++ compatibility.
|
|
|
|
|
|
|
| |
* libchip/ide/ata_util.c: New file.
* libchip/Makefile.am: Reflect change from above.
* libchip/ide/ata.c: Moved ata_breq_init(), ata_identify_device(), and
ata_process_request_on_init_phase() into new file.
|
|
|
|
|
|
|
| |
* libchip/ide/ata_internal.h, libchip/ide/ata.c: Moved code into
separate functions. Added public ata_breq_init(),
ata_identify_device(), and ata_process_request_on_init_phase()
functions.
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: PR
1448/filesystem.
|
|
|
|
|
| |
* libchip/ide/ata.c: Change missed use of ATA_USE_OLD_EXCEPTIONS to
CPU_SIMPLE_VECTORED_INTERRUPTS.
|
|
|
|
|
| |
* libchip/ide/ata.c: Use correct macro from RTEMS to determine whether
simple or PIC interrupt model.
|
|
|
|
|
| |
* libchip/ide/ide_controller.c: Fix warnings for uninitialized
variable.
|
|
|
|
|
| |
* libchip/ide/ide_controller.c: Create the devices as block
devices.
|
| |
|
| |
|
| |
|
|
|
|
| |
* libchip/ide/ata.c (rtems_ata_initialize): Avoid implicit cast to uint16_t.
|
|
|
|
|
| |
* libchip/ide/ata.c (ata_non_data_request): Change arg from int to
uint32_t (16bit ints are too small).
|
|
|
|
| |
* libchip/ide/ata.h: Move extern "C".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libchip/ide/ata.c, c/src/libchip/ide/ata_internal.h: Remove the
multiblock support from the ATA driver. Multiblock at the disk
level should not be a global policy as a disk may have more than
one partition with different block sizes. An IDE driver could
decide to use the feature with DMA but this a driver specific
design choice. Fixed bugs relating to variable block sizes and
large block transfer.
* c/src/libchip/ide/ide_controller.c,
c/src/libchip/ide/ide_ctrl_cfg.h, c/src/libchip/ide/ide_ctrl_io.h:
Changed the block size to 32bits so blocks of 64K or bigger can be
transfered in a single driver call.
|
|
|
|
|
| |
* libchip/ide/ata.c: Revert previous change. Not all ARM BSPs use a
shared irq.h yet and this breaks a significant number of them.
|
|
|
|
|
| |
* libchip/ide/ata.c: Use simple vectored CPU macro to select interrupt
model.
|
|
|
|
| |
* libchip/ide/ata.c: Remove warning.
|
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Eliminate using the
GNU/Linux specific error numbers EBADRQC and ENOTBLK. Switch to
EINVAL and ENOTTY as appropriate.
|
|
|
|
|
|
| |
* c/src/libchip/ide/ata.c: Fixed the bug that ignored slave
devices on an IDE bus and cleaned up the initialisation register
call.
|
|
|
|
|
|
|
|
| |
* libchip/ide/ata.c: Remove a detection test that fails in qemu.
* libchip/ide/ide_controller.c: Change the status detection and
add a message if the transfer fails. There is currently no error
handle at the IDE drvier level.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Remove
rtems_blkdev_request count and start references. Use
RTEMS_BLKDEV_START_BLOCK.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libchip/i2c/spi-sd-card.c: Updated to the libblock changes.
* libchip/ide/ata.c: Change to use a mutex rather than disable
pre-emption. Updated to the libblock changes.
* libchip/ide/ata_internal.h: Updated to the new chains API.
* libchip/ide/ide_controller.c: Updated to the libblock
changes. Added come debug tracing.
* libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h: Updated
to the libblock changes.
|
|
|
|
| |
* ata.c: Change to the Chains API.
|
|
|
|
|
| |
PR 649/bsps
* libchip/ide/ata.c: Give up if the interface does not become ready.
|
|
|
|
| |
many different versions of new exception handling code to shared sources.
|
|
|
|
| |
* libchip/ide/ata.c: Remove superfluous type casts.
|