summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* bsps/sparc: Fix external variable declarationsSebastian Huber2018-08-101-2/+2
|
* bsps/sparc: Move polled APBUART functionsSebastian Huber2018-08-107-127/+64
| | | | This reduces the link-time dependencies and avoids copy-and-paste.
* posix: Add configure check for mprotect()Sebastian Huber2018-08-102-0/+14
| | | | Update #3491.
* bsp/atsam: Fix handling of slow SPI speeds.Christian Mauderer2018-08-091-1/+20
| | | | | This patch fixes an overflow in the frequency calculation of the SPI driver for slow SPI speeds.
* sys/event.h: Update version FreeBSD tagSebastian Huber2018-08-081-1/+1
| | | | Update #3472.
* Make the definition of struct kevent in event.h match what the man page for ↵dab2018-08-081-4/+4
| | | | | | | | | | | | | | | kevent(2) says. This is a trivial comment-only fix. The man page for kevent(2) gives the definition of struct kevent, including a comment on each field. The actual definition in sys/event.h omitted the comments on some fields. Add the comments in. Not only does this make the man page and include file agree, but the comments are useful in and of themselves. Reviewed by: kib (D15778: commented that this should be a separate commit) MFC after: 3 days Sponsored by: Dell EMC
* Address some (although not all) style(9) issues in event.h after r335776.dab2018-08-081-10/+10
| | | | | | Reported by: bde@ MFC after: 1 day Sponsored by: Dell EMC
* Fix compilation error in r335765 under gcc 4.2.1.dab2018-08-081-4/+1
| | | | | | | | | | | The anonymous object initialization introduced in r335765 was acceptable to clang, but not gcc 4.2.1. Fix it for both. Reported by: jhibbits@ Pointy Hat: myself MFC after: 1 week X-MFC-with: r335765 Sponsored by: Dell EMC
* Remove potential identifier conflict in the EV_SET macro.dab2018-08-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | PR43905 pointed out a problem with the EV_SET macro if the passed struct kevent pointer were specified with an expression with side effects (e.g., "kevp++"). This was fixed in rS110241, but by using a local block that defined an internal variable (named "kevp") to get the pointer value once. This worked, but could cause issues if an existing variable named "kevp" is in scope. To avoid that issue, jilles@ pointed out that "C99 compound literals and designated initializers allow doing this cleanly using a macro". This change incorporates that suggestion, essentially verbatim from jilles@ comment on PR43905, except retaining the old definition for pre-C99 or non-STDC (e.g., C++) compilers. PR: 43905 Submitted by: Jilles Tjoelker (jilles@) Reported by: Lamont Granquist <lamont@scriptkiddie.org> Reviewed by: jmg (no comments), jilles MFC after: 1 week Sponsored by: Dell EMC Differential Revision: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=43905
* sys/sys: further adoption of SPDX licensing ID tags.pfg2018-08-081-0/+2
| | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
* Decode kevent structures logged via ktrace(2) in kdump.jhb2018-08-081-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a new KTR_STRUCT_ARRAY ktrace record type which dumps an array of structures. The structure name in the record payload is preceded by a size_t containing the size of the individual structures. Use this to replace the previous code that dumped the kevent arrays dumped for kevent(). kdump is now able to decode the kevent structures rather than dumping their contents via a hexdump. One change from before is that the 'changes' and 'events' arrays are not marked with separate 'read' and 'write' annotations in kdump output. Instead, the first array is the 'changes' array, and the second array (only present if kevent doesn't fail with an error) is the 'events' array. For kevent(), empty arrays are denoted by an entry with an array containing zero entries rather than no record. - Move kevent decoding tables from truss to libsysdecode. This adds three new functions to decode members of struct kevent: sysdecode_kevent_filter, sysdecode_kevent_flags, and sysdecode_kevent_fflags. kdump uses these helper functions to pretty-print kevent fields. - Move structure definitions for freebsd11 and freebsd32 kevent structures to <sys/event.h> so that they can be shared with userland. The 32-bit structures are only exposed if _WANT_KEVENT32 is defined. The freebsd11 structures are only exposed if _WANT_FREEBSD11_KEVENT is defined. The 32-bit freebsd11 structure requires both. - Decode freebsd11 kevent structures in truss for the compat11.kevent() system call. - Log 32-bit kevent structures via ktrace for 32-bit compat kevent() system calls. - While here, constify the 'void *data' argument to ktrstruct(). Reviewed by: kib (earlier version) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D12470
* Add abstime kqueue(2) timers and expand struct kevent members.kib2018-08-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This change implements NOTE_ABSTIME flag for EVFILT_TIMER, which specifies that the data field contains absolute time to fire the event. To make this useful, data member of the struct kevent must be extended to 64bit. Using the opportunity, I also added ext members. This changes struct kevent almost to Apple struct kevent64, except I did not changed type of ident and udata, the later would cause serious API incompatibilities. The type of ident was kept uintptr_t since EVFILT_AIO returns a pointer in this field, and e.g. CHERI is sensitive to the type (discussed with brooks, jhb). Unlike Apple kevent64, symbol versioning allows us to claim ABI compatibility and still name the new syscall kevent(2). Compat shims are provided for both host native and compat32. Requested by: bapt Reviewed by: bapt, brooks, ngie (previous version) Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D11025
* Fix typo.pkelsey2018-08-081-1/+1
| | | | | | hist -> hint MFC after: 3 days
* CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZESebastian Huber2018-08-084-1/+25
| | | | | | Make CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE configurable by the user. Update #3434.
* tests: Remove CONFIGURE_MAXIMUM_DRIVERSSebastian Huber2018-08-0713-28/+0
| | | | This configuration is superfluous in these tests.
* libblock: Add RTEMS_DEPRECATEDSebastian Huber2018-08-078-156/+62
| | | | Close #3358.
* fileio: Avoid deprecated rtems_disk_obtain()Sebastian Huber2018-08-071-22/+25
| | | | Update #3358.
* dosfs: Avoid deprecated routineSebastian Huber2018-08-074-2/+5
| | | | Update #3358.
* tests: Avoid deprecated rtems_disk_io_initialize()Sebastian Huber2018-08-076-26/+0
| | | | Update #3358.
* bsp/gen5200: Avoid deprecated routineSebastian Huber2018-08-071-1/+3
| | | | Update #3358.
* libchip/ata: Use rtems_blkdev_create()Sebastian Huber2018-08-072-48/+13
| | | | Update #3358.
* libblock: Use rtems_blkdev_create_partition()Sebastian Huber2018-08-072-16/+2
| | | | Update #3358.
* libtests/block15: Use rtems_blkdev_create()Sebastian Huber2018-08-071-18/+24
| | | | Update #3358.
* libtests/block14: Use rtems_blkdev_create()Sebastian Huber2018-08-071-19/+25
| | | | Update #3358.
* libtests/block13: Use rtems_blkdev_create()Sebastian Huber2018-08-071-19/+25
| | | | Update #3358.
* libtests/block12: Use rtems_blkdev_create()Sebastian Huber2018-08-071-18/+25
| | | | Update #3358.
* libtests/block10: Use rtems_blkdev_create()Sebastian Huber2018-08-071-41/+28
| | | | Update #3358.
* libtests/block09: Use rtems_blkdev_create()Sebastian Huber2018-08-071-40/+25
| | | | Update #3358.
* libtests/block08: Use rtems_blkdev_create()Sebastian Huber2018-08-074-77/+27
| | | | Update #3358.