Commit Graph

30217 Commits

Author SHA1 Message Date
Sebastian Huber
c4b058ca48 bsp/atsam: Fix DMA support of some drivers 2017-03-22 10:38:27 +01:00
Sebastian Huber
d50ab07938 dosfs: Fix file name search
Do not use our long file name entry count to optimize the file name
search. The Unicode comparison must be taken into account.

Update #2939.
2017-03-16 15:33:59 +01:00
Sebastian Huber
dfd879fa42 dosfs: Fix race condition msdos_dir_read()
Obtain file system instance lock before member access.

Update #2937.
2017-03-16 15:33:58 +01:00
Sebastian Huber
6c988987f6 dosfs: Rename fat_entries to lfn_entries
The name "fat_entries" for long file name directory entries is quite
misleading.
2017-03-16 15:33:58 +01:00
Sebastian Huber
5f8ed0d8da dosfs: Fix long file name padding
Update #2934.
2017-03-16 15:33:58 +01:00
Sebastian Huber
e625a57ff8 dosfs: msdos_filename_utf8_to_short_name_for_save
Simplify.
2017-03-16 15:33:58 +01:00
Sebastian Huber
b1daf0f095 dosfs: Fix msdos_add_file()
Make sure that long file names work accross cluster boundaries.

Update #2929.
2017-03-16 15:33:58 +01:00
Sebastian Huber
1a9483e2db dosfs: Simplify msdos_add_file()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
3efe74953f dosfs: Add and use msdos_lfn_checksum()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
063eb574b9 dosfs: Simplify fat_file_open()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
ccd4a7f397 dosfs: Simplify msdos_creat_node()
Update #2929.
2017-03-16 15:33:57 +01:00
Sebastian Huber
e69ee3629d dosfs: Fix fat_file_write()
Remove forced overwrite which leads to file data corruption.  The logic
to determine a forced overwrite was fundamentally broken.  For simplity,
disable this feature.

Update #2622.
2017-03-16 15:33:57 +01:00
Sebastian Huber
1becaa953e dosfs: Fix msdos_utf8_normalize_and_fold()
It is all right in case the result uses the full destination buffer.
Without this fix the handling of a maximum 8.3 short file name is
broken.

Update #2928.
2017-03-16 15:33:57 +01:00
Sebastian Huber
66fac03fae libio: Fix deadlock in location management
Perform a context-dependent deferred location release to avoid a
deadlock on the file system instance locks, for example during a
chdir().

Update #2936.
2017-03-16 15:33:56 +01:00
Joel Sherrill
191d39a5c4 psxstrsignal01: New test 2017-03-15 12:59:47 -05:00
Joel Sherrill
c218d01d7a tools/build/eolstrip.c: Use snprintf() to avoid potential buffer overflow
This was spotted by Coverity Scan.
2017-03-14 12:02:09 -05:00
Joel Sherrill
17d1aa7cc0 libchip/serial/mc68681.c: Add error check
This was spotted by Coverity Scan.
2017-03-14 12:02:08 -05:00
Chris Johns
eb733202ad Fix rtems-test-check with a BSD sed.
BSD sed does not support '\t' and treated '[ \t]' as 3 characters. This patch
uses a standard method of supporting blank spaces.
2017-03-14 13:54:21 +11:00
Joel Sherrill
68929dcaa1 libbsp/mips/shared/irq/i8259.c: Add include of rtems/bspIo.h 2017-03-09 16:59:28 -06:00
Joel Sherrill
a557f6c839 libbsp/shared/clock/clockdrv.c: Remove unneeded printk() 2017-03-09 16:59:25 -06:00
Joel Sherrill
a05b749fa7 libbsp/malta/pci/pci.c: Correct printk() formats 2017-03-09 16:59:22 -06:00
Joel Sherrill
e026dbc5b7 libbsp/csb350/clock/clockdrv.c: Remove unneeded printk() 2017-03-09 16:59:15 -06:00
Joel Sherrill
b07eae90b3 libbsp/mips/shared/irq.c: Fix warnings 2017-03-09 16:59:12 -06:00
Sebastian Huber
b437a36064 arm: Fix CPU context validation for Cortex-R4
Do not touch the FPSCR[QC] bit since this is DNM/RAZ on Cortex-R4.
2017-03-09 14:32:04 +01:00
Sebastian Huber
dc95663e8b bsp/tms570: Fix CPU counter frequency
The CPU counter runs with the processor frequency.  Use
RTEMS_SYSINIT_ITEM() to initialize the CPU counter.
2017-03-09 14:17:52 +01:00
Sebastian Huber
5ca634e9c0 bsp/tms570: Support printk() early
Allow use of printk() early in the initalization and without a console
driver.
2017-03-09 13:23:54 +01:00
Sebastian Huber
ce5bcc87df bsp/beagle: Fix warnings 2017-03-08 15:36:55 +01:00
Sebastian Huber
f25c798f42 bsp/smdk2410: Fix format warning 2017-03-08 15:36:54 +01:00
Sebastian Huber
f82e9af7fa bsp/lpc176x: Fix integer to pointer warnings 2017-03-08 15:36:54 +01:00
Sebastian Huber
504a58228d bsps/umon: Fix format warnings 2017-03-08 15:36:54 +01:00
Sebastian Huber
65b63b2b23 bsp/altera-cyclone-v: Remove debug output 2017-03-08 15:36:54 +01:00
Sebastian Huber
2433a8ab1c arm: Remove legacy execption support 2017-03-08 15:36:54 +01:00
Sebastian Huber
6584eb2830 bsp/qoriq: Fix memory configuration
Take nocache section into account which may reside after the workspace.
2017-03-08 10:35:36 +01:00
Sebastian Huber
9cd20cde4d bsps: Provide <bsp/fdt.h> for every BSP
Add bsp_fdt_map_intr() intended for the libbsd FDT support.
2017-03-08 07:19:00 +01:00
Sebastian Huber
36338fb312 monitor: Do not zero sema id and name 2017-03-07 13:42:21 +01:00
Sebastian Huber
088acbb01f score: Fix scheduler yield in SMP configurations
Check that no ask help request is registered during unblock and yield
scheduler operations.  There is no need to ask for help if a scheduled
thread yields, since this is already covered by the pre-emption
detection.

Update #2556.
2017-03-07 13:21:00 +01:00
Sebastian Huber
a11e1ff576 powerpc: Optimize AltiVec context switch
Use r8 instead of r5 to slightly optimize _CPU_Context_switch().  It is
not a big deal, however, we already assume r12 is used by
_CPU_Context_switch().  Treat r5 the in same way.
2017-03-07 07:58:11 +01:00
Sebastian Huber
c6f7639250 powerpc: Fix AltiVec context switch
Update #2751.
2017-03-07 07:50:12 +01:00
Sebastian Huber
696b5b1e4e bsp/beatnik: More verbose fatal extension 2017-03-06 14:37:43 +01:00
Sebastian Huber
f61195b2f9 powerpc: Fix PPC_CONTEXT_VOLATILE_SIZE 2017-03-06 11:16:40 +01:00
Sebastian Huber
b925ae70f4 bsp/beatnik: Update due to API changes
The device_t typedef is already provided by <sys/types.h> if _KERNEL is
defined.
2017-03-06 11:14:08 +01:00
Daniel Hellstrom
49caf22226 leon, grspw_pkt: fix overwrite protection when more than 32 devs
This is a fix for a coverity warning
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
cc8a50ab5c leon,grtm: ioctl() shouldn't access pointer before validated
This is a fix for a coverity warning
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
fec8288f51 leon, grspw_pkt: SMP support
The driver already was developed with SMP in mind however SMP was
disabled waiting for final fixups and testing.

The new function to control the affinity of the ISR was added
but does not work for now since the LEON BSP does not reroute
IRQs between CPUs during run-time:
 grspw_isr_affinity()
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
36fc8b1835 leon, grspw_pkt: unregister ISR on close 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
090016a4fb leon, grspw_pkt: ISR activate shutdown work only if errintr enabled
In shared interrupt systems it might be a problem to handle the interrupt
regardless of the interrupt is enabled. Now the same approach to the
DMA RX/TX interrupt in the ISR is taken.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
029ce4d1de leon, grspw_pkt: fix descriptor table mem leak on grspw_close() 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
1b559e3113 leon, grspw_pkt: add missing GRSPW1 IP-core support 2017-03-06 07:54:55 +01:00
Daniel Hellstrom
94fb377bd9 leon, grspw_pkt: ISR RX/TX DMA interrupt source disable configurable
This patch introduces some new options to let the user control when
    the ISR shall disable DMA RX/TX interrupt. The ISR can be set in three
    modes when a RX/TX DMA interrupt is asserted:
     1) ISR will always clear both RX/TX DMA interrupt enable. (DEFAULT).
     2) ISR will never never RX or TX DMA interrupt enable, ISR will
        leave RX/TX DMA interrupt enable untouched.
     3) ISR will clear the interrupt enable(s) causing the interrupt,
        this allows separate RX and TX IRQ handling.

    This patch is backwards compatible since default mode 1) is activated
    when the grspw_dma_config.flags DMAFLAGS2_IRQD field is 0.
2017-03-06 07:54:55 +01:00
Daniel Hellstrom
8acfa948d4 leon, grpsw_pkt: set unique work-task name 2017-03-06 07:54:55 +01:00