summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lpc32xx/include/bsp.h: Resolve set but not used warningJoel Sherrill2018-08-291-0/+1
|
* monlib.[ch]: Fix warnings for external vs internal use of .hJoel Sherrill2018-08-292-6/+7
|
* qoriq/include/tm27.h: Fix warningsJoel Sherrill2018-08-291-5/+5
|
* gen5200/include/tm27.h: Fix warningsJoel Sherrill2018-08-291-4/+5
|
* mpc55xxevb/clock/clock-config.c: Remove unused mpc55xx_clock_cleanup() methodJoel Sherrill2018-08-291-10/+0
|
* gen5200/include/bsp/bestcomm.h: Fix unused variable warningJoel Sherrill2018-08-291-0/+3
|
* bsps/i386/shared/cache/cache.c: Fix warningsJoel Sherrill2018-08-291-20/+2
|
* gdbarmsim/include/bsp.h: Fix warningsJoel Sherrill2018-08-291-3/+3
|
* cpukit/telnetd/pty.c: Fix format overflow warning on sprintf()Joel Sherrill2018-08-291-5/+6
| | | | | | | | cpukit/telnetd/pty.c:436:47: warning: '%X' directive writing between 1 and 8 bytes into a region of size 3 [-Wformat-overflow=] The devname area was malloc'ed. Now it is statically allocated and sufficiently large to account for the potential buffer overflow.
* bsps/m68k/shared/cache/cache.h: Fix warnings and clean upJoel Sherrill2018-08-291-38/+43
|
* score: Remove redundant #ifdef RTEMS_SMPSebastian Huber2018-08-291-2/+0
|
* bsp/qoriq: Remove READMESebastian Huber2018-08-291-29/+0
| | | | Update #2854.
* Include <stdbool.h> in <machine/_kernel_types.h>Sebastian Huber2018-08-271-0/+2
| | | | | | The FreeBSD kernel started to use the bool type. Update #3472.
* Add FreeBSD kernel space header filesSebastian Huber2018-08-278-0/+498
| | | | | | | | Move the kernel space content of some Newlib provided header files to RTEMS and libbsd. This allows to use the Newlib provided header files with different FreeBSD baselines. Update #3472.
* spglobalcon01: LLVM optimization makes variable i always 1Daniel Hellstrom2018-08-241-2/+2
| | | | | Declare i volatile to avoid compiler optimization putting i into data section with initialization value 1.
* psxfile01: floating point context required when calling fprintfDaniel Hellstrom2018-08-241-0/+2
| | | | | This avoids an exception (FP disabled) when RTEMS/Newlib have been built with LLVM/Sparc.
* psx13: floating point context required when calling fprintfDaniel Hellstrom2018-08-241-0/+2
| | | | | This avoids an exception (FP disabled) when RTEMS/Newlib have been built with LLVM/Sparc.
* capture: prevent unaligned access when reading timeDaniel Hellstrom2018-08-241-1/+3
| | | | | | | | | | | | LLVM warns about this: cpukit/libmisc/capture/capture.c:405:30: warning: taking address of packed member 'time' of class or structure 'rtems_capture_record' may result in an unaligned pointer value [-Waddress-of-packed-member] rtems_capture_get_time (&in.time); And on sparc it generates an unaligned trap which makes smpcapture01 and smpcapture02 test to fail on sparc.
* leon,grspw_pkt: remove incorrect comment on SMP not being testedDaniel Hellstrom2018-08-241-1/+1
| | | | | | To clarify, SMP with GRSWP_PKT driver API has been extended to take advantage of multi-core, is now SMP-safe, and has been tested on GR740.
* leon,apbuart: replace termios c_cflag & CBAUD with c_{i,o}speedDaniel Hellstrom2018-08-241-61/+3
| | | | | | | | | | | ince some time RTEMS started to use the termios c_ispeed and c_ospeed variables in the termios struct to hold the UART baudrate. However the APBUART driver still uses the old c_cflag sometimes causing other UART parameters to get overwritten, for example the partiy setting no mapped to the same bits as the old CBAUD mask. At the same time the RTEMS primitievs for setting/reading c_{i,o}speed is now used.
* leon,greth: enable MAC filtering (promiscous mode, multicast)Daniel Hellstrom2018-08-242-1/+105
| | | | | | | | | | | | | | | | It enabled promiscous mode or sets the multicast filter according to the configuration and parameters to ioctl(SIOCSIFFLAGS), ioctl(SIOCADDMULTI) and ioctl(SIOCDELMULTI). On SIOCADDMULTI/SIOCDELMULTI requests the greth ioctl calls the Ethernet helper functions ether_addmulti()/ether_delmulti() which tells the greth driver when its required to update the MAC multicast filtering. The interface notifies support for multicast by setting IFF_MULTICAST. The GRETH has two registers which contains a bit-mask of allowed MAC addresses. The incomming MAC address is CRC:ed and the CRC is used as an index into the bit-mask to determine to allow or drop the frame.
* leon, greth: 10/100 MAC enable TX BD interruptDaniel Hellstrom2018-08-241-5/+5
| | | | | | | Missed to enable interrupt per TX descriptor. Could lead to TX buffer starvation. Does not affect the GBit code.
* sparc,smp: typo in start.S causing SMP not workingDaniel Hellstrom2018-08-241-1/+1
|
* sparc: Restore npc when returning from the syscall_lazy_fp_switch trapDaniel Cederman2018-08-241-1/+1
| | | | | If the floating point trap occurred in a delay slot it is not certain that npc will be equal to pc + 4.
* Update FreeBSD kernel timespec supportSebastian Huber2018-08-232-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is based on the following FreeBSD commit: "Make timespecadd(3) and friends public The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public. Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version. Bump _FreeBSD_version due to the breaking KPI change. Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725" To make the change public (outside #ifdef _KERNEL) it must be integrated in Newlib. Update #3472.
* score: Do not inline _Thread_Dispatch_enable()Sebastian Huber2018-08-232-27/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is slighly too complex for inlining with two if statements. The caller already needs a stack frame due to the potential call to _Thread_Do_dispatch(). In _Thread_Dispatch_enable() the call to _Thread_Do_dispatch() can be optimized to a tail call. A text size comparision (text size after patch - text size before patch) / text size before patch on sparc/erc32 with SMP enabled showed these results: Minimum -0.000697892 (fsdosfsname01.exe) Median -0.00745021 (psxtimes01.exe) Maximum -0.0233032 (spscheduler01.exe) A text size comparision text size after patch - text size before patch on sparc/erc32 with SMP enabled showed these results: Minimum -3312 (ada_sp09.exe) Median -1024 (tm15.exe) Maximum -592 (spglobalcon01.exe)
* Add dummy PI_SOFT to <sys/priority.h>Sebastian Huber2018-08-231-0/+1
| | | | Update #3472.
* score: Fix ISR enable in _Thread_Dispatch_enable()Sebastian Huber2018-08-201-2/+1
| | | | | | | This bug had probably no effect since the interrupt enable is idempotent on all CPU ports. Close #3496.
* bsps/arm: Fix PL111 register define re-definitionSebastian Huber2018-08-202-2/+2
| | | | Close #3502.
* dev/sc16is752: Add name space for field names.Christian Mauderer2018-08-152-95/+98
| | | | | | | The field names for the registers generated a name collision (MSR_RI on the power pc). This patch adds a SC16IS752_ prefix for all field names. Closes #3501.
* dl06/dl06-o1.c: Remove set, not used warningJoel Sherrill2018-08-151-1/+4
|
* fsdosfssync01/init.c: Remove unused variableJoel Sherrill2018-08-151-1/+0
|
* bsps/x86_64: Add APIC timer based clock driverAmaan Cheval2018-08-138-1/+640
| | | | | | | | | The APIC timer is calibrated by running the i8254 PIT for a fraction of a second (determined by PIT_CALIBRATE_DIVIDER) and counting how many times the APIC counter has ticked. The calibration can be run multiple times (determined by APIC_TIMER_NUM_CALIBRATIONS) and averaged out. Updates #2898.
* bsps/x86_64: Add support for RTEMS interruptsAmaan Cheval2018-08-1312-33/+648
| | | | Updates #2898.
* bsps/x86_64: Add paging support with 1GiB super pagesAmaan Cheval2018-08-136-0/+261
| | | | Updates #2898.
* bsps/x86_64: Reduce default RamSize to 1GiBAmaan Cheval2018-08-131-3/+3
| | | | | | | Simulators may not always be able to allocate 4GiB easily, and using an artificially lower RAM may cause a broken heap. Updates #2898.
* bsps/x86_64: Reorganize header files and compile-optionsAmaan Cheval2018-08-138-22/+84
| | | | Updates #2898.
* libtests/POSIX: Fix warnings and style.Joel Sherrill2018-08-1046-148/+140
|
* bsps/sparc/include/bsp/gradcdac.h: Fix nested comment warningJoel Sherrill2018-08-101-1/+1
|
* qoriq/include/tm27.h: Fix prototype warningJoel Sherrill2018-08-101-2/+2
|
* motorola_powerpc/include/tm27.h: Fix prototype warningJoel Sherrill2018-08-101-4/+4
|
* bsps/powerpc/include/mpc83xx/mpc83xx.h: Fix nested comment warningJoel Sherrill2018-08-101-1/+1
|
* bsps/powerpc/include/bsp/tictac.h: Fix protototype warningsJoel Sherrill2018-08-101-4/+4
|
* gen83xx/include/tm27.h: Fix prototype warningJoel Sherrill2018-08-101-1/+1
|
* gen5200/include/tm27.h: Fix prototype warningJoel Sherrill2018-08-101-4/+4
|
* gen5200/include/bsp/ata.h: Fix warningJoel Sherrill2018-08-101-0/+2
|
* csb337/include/at91rm9200_dbgu.h: Fix nested comment warningJoel Sherrill2018-08-101-1/+1
|
* score: Fix _Addresses_Subtract()Sebastian Huber2018-08-104-16/+13
| | | | | | Use architecture-specific integer type for an address difference. Update #3486.
* rtems: Parameter types in rtems_partition_create()Sebastian Huber2018-08-102-7/+7
| | | | | | | | | | Use uintptr_t to specify the length of the partition buffer area instead of uint32_t. This is in line with rtems_region_create(). On 64-bit targets, the length may exceed 4GiB. Use size_t for the buffer size, since on some targets the single object size is less than the overall address range, e.g. m32c sizeof(uintptr_t) > sizeof(size_t). Update #3486.
* Add dummy PRI_MIN_KERN to <sys/priority.h>Sebastian Huber2018-08-101-0/+1
| | | | Update #3472.