| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* score/src/watchdogtickle.c: Remove tabs.
|
|
|
|
|
|
|
|
|
|
| |
PR 1258/rtems
* cpukit/score/src/heapallocatealigned.c (block_allocate): New routine.
* cpukit/score/src/heapallocatealigned.c (_Heap_Allocate_aligned):
Use block_allocate() instead of _Heap_Block_allocate(). Replace
_Heap_Head(the_heap)->next with equivalent _Heap_First(the_heap).
* cpukit/score/src/heap.c (_Heap_Allocate): fix comments according
to changed block split strategy in _Heap_Allocate_aligned().
|
|
|
|
|
|
| |
* cpu_asm.S: Fix two problems:
- CC bit has been clobbered and was not correctly restored
- bfin hardware does not allow to read instructions from the L1
|
|
|
|
| |
* rtems/bfin/bf533.h: Add more definitions.
|
|
|
|
|
|
|
| |
* score/src/heap.c: Style.
* score/src/heapwalk.c: Add more information to prints.
* score/src/pheapwalk.c: Do not lock allocator mutex if dispatching
is disabled.
|
|
|
|
|
| |
* rtems/include/rtems/rtems/clock.h, score/src/threadhandler.c: Fix
spacing and spelling.
|
|
|
|
|
| |
* score/include/rtems/score/object.h: Point the
OBJECTS_RTEMS_CLASSES_LAST macro to the last entry.
|
|
|
|
| |
* rtems/score/m68k.h: Add stubs for mcf5307, mcf5407, mcfv4e.
|
|
|
|
| |
* rtems/score/cpu.h: Use uintptr_t instead of uint32_t.
|
|
|
|
|
| |
* score/cpu/mips/rtems/score/cpu.h: Use uintptr_t instead of
uint32_t.
|
|
|
|
|
| |
* cpu_asm.S, rtems/score/cpu.h, rtems/score/m68k.h:
Replace M68K_COLDFIRE_ARCH with __mcoldfire__.
|
| |
|
|
|
|
|
| |
* score/inline/rtems/score/priority.inl: Use size_t instead of
uint32_t for array index.
|
|
|
|
|
|
|
| |
* libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c,
score/src/timespecdivide.c: Fix various math and reporting bugs. Now
the time appears to be reported correctly and add up to what is
expected.
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/malloc.c: Clean up Malloc debug code.
* score/include/rtems/score/heap.h: Spacing.
* score/inline/rtems/score/thread.inl:
* score/src/heapfree.c. Clean up and add explicit check of the address
being freed actually being in the heap.
* score/src/heapwalk.c: Switch to printk and do not call abort.
|
|
|
|
| |
many different versions of new exception handling code to shared sources.
|
|
|
|
|
| |
* cpu.c: Comment out may_alias so this compiles without a compiler
error.
|
|
|
|
|
|
| |
* cpu.c: Merge patch from Till Straumann which would work except gcc
core dumps with an ICE when may_alias is used in this code. I filed a
GCC PR and reduced optimization to -O0 and it does run again.
|
|
|
|
|
| |
* score/src/corerwlock.c: Make sure structure is fully initialized.
When reused, some fields will not be zero like at initialization.
|
|
|
|
| |
* score/src/coremsg.c: Formatting.
|
|
|
|
|
|
|
| |
* rtems/score/cpu.h: Modifiy inline assembly language
constraints to use a data register as the CTL/STI
instructions requires. This is not only more correct,
it avoids GCC PR31787.
|
|
|
|
| |
* score/include/rtems/score/copyrt.h: Update copyright notice.
|
|
|
|
| |
* rtems/score/cpu.h: Fix incorrect interrupt mask.
|
|
|
|
|
|
|
| |
Yu Chen <chyyuu@gmail.com>
* score/src/corespinlockwait.c: Per question posted as
http://www.rtems.org/ml/rtems-users/2007/may/msg00180.html, changed
logical operator to <=.
|
|
|
|
|
|
|
|
|
| |
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
score/cpu/m68k/cpu.c, score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c,
score/cpu/no_cpu/cpu.c, score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c,
cpukit/sapi/src/exinit.c: Move copying of CPU Table to shared
executive initialization.
|
|
|
|
| |
* score/src/corerwlockrelease.c: Do not dereference NULL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ChangeLog, configure.ac, libcsupport/src/__times.c,
libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c,
rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c,
rtems/src/ratemonresetall.c, rtems/src/ratemontimeout.c,
score/Makefile.am, score/include/rtems/score/thread.h,
score/include/rtems/score/timespec.h, score/src/threaddispatch.c,
score/src/threadinitialize.c, score/src/threadtickletimeslice.c,
score/src/timespecdivide.c: Add nanoseconds granularity to the rate
monotonic period statistics and CPU usage statistics. This capability
is enabled by default although may be conditionally disabled by the
user. It could be too much overhead on small targets but it does not
appear to be bad in early testing. Its impact on code size has not
been evaluated either. It is possible that both forms of statistics
gathering could be disabled with further tweaking of the conditional
compilation.
* score/src/timespecdividebyinteger.c: New file.
|
|
|
|
|
|
|
|
| |
* score/src/objectgetnameasstring.c: Internal threads use string names
so in the current RTEMS source string object name can NOT be
disabled. It is probably worth considering converting the internal
threads to uint32_t style names so all the support for string names
can be conditionally disabled.
|
|
|
|
|
|
|
| |
* score/Makefile.am, score/include/rtems/score/timespec.h: Add division
and greater than operations for timespecs.
* score/src/timespecdivide.c, score/src/timespecgreaterthan.c:
New files.
|
|
|
|
|
| |
* score/src/objectgetnameasstring.c: Remove bogus ifdef
RTEMS_POSIX_API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.am, preinstall.am, libmisc/Makefile.am, rtems/Makefile.am,
rtems/include/rtems.h, rtems/include/rtems/rtems/ratemon.h,
rtems/inline/rtems/rtems/ratemon.inl, rtems/src/ratemoncancel.c,
rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c,
rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c,
rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c,
score/Makefile.am, score/include/rtems/score/object.h,
score/src/threadhandler.c, wrapup/Makefile.am: Integrate Rate
Monotonic Statistics and Period Usage into Rate Monotonic Manager.
Added the following directives: rtems_rate_monotonic_get_statistics,
rtems_rate_monotonic_reset_statistics,
rtems_rate_montonic_reset_all_statistics,
rtems_rate_montonic_report_statistics, and rtems_object_get_name.
Obsoleted the rtems/rtmonuse.h file as a public interface.
* rtems/src/ratemongetstatistics.c,
rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c,
rtems/src/ratemonresetstatistics.c, rtems/src/rtemsobjectgetname.c,
score/src/objectgetnameasstring.c: New files.
* libmisc/rtmonuse/rtmonuse.c, libmisc/rtmonuse/rtmonuse.h: Removed.
|
|
|
|
|
| |
* cpu.c: move do_data_abort() to libbsp/arm/shared/abort/
implement a compact do_data_abort() in simple_abort.c
|
|
|
|
|
|
|
|
|
| |
* score/src/coremsgseize.c: A blocking sender's message size was
pulled out of the wrong field in the Wait information structure.
* score/src/objectallocate.c: With the new optional manager support,
we only stub out the initialization. This makes it possible to attempt
to create an object with the information structure only initialized
with all zeros. This ensures we return an error cleanly in this case.
|
|
|
|
|
|
| |
PR 1241/rtems
* score/src/threadchangepriority.c, score/src/threadqrequeue.c: Close
critical section window added with requeueing support.
|
|
|
|
|
|
|
|
| |
PR 1237/rtems
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Add logic to prevent stack creep
when interrupts occur at a sufficient rate that the interrupted
thread never gets to clean its stack. This patch ensures that an
interrupted thread will not nest ISR dispatches on its stack.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc.c,
sapi/Makefile.am, sapi/include/confdefs.h, sapi/src/exinit.c,
score/Makefile.am, score/preinstall.am,
score/include/rtems/score/userext.h, score/src/chain.c,
score/src/userext.c: Switch to newlib reentrancy extension being
installed in the initial set instead of using rtems_extension_create.
While implementing this, noticed that user extensions and chain code
had multiple functions in a single file which is not desirable in the
SuperCore and API portions of RTEMS, so split these into multiple
files with one function per file. Also noticed that some of user
extension code was inlined for no particular reason so moved that to
C bodies. Split executive shutdown from initialization since not
every application shuts down. Moved __fini call to executive shutdown
to be more symmetrical with where it is called at startup.
* sapi/src/exshutdown.c, score/src/chainappend.c,
score/src/chainextract.c, score/src/chainget.c,
score/src/chaininsert.c, score/src/userextaddapiset.c,
score/src/userextaddset.c, score/src/userextremoveset.c,
score/src/userextthreadbegin.c, score/src/userextthreadcreate.c,
score/src/userextthreaddelete.c, score/src/userextthreadrestart.c,
score/src/userextthreadstart.c, score/src/userextthreadswitch.c: New
files.
* score/inline/rtems/score/userext.inl: Removed.
|
| |
|
|
|
|
| |
* rtems/score/cpu.h: Remove CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ChangeLog, libcsupport/src/malloc.c,
libcsupport/src/mallocfreespace.c, sapi/include/confdefs.h,
score/Makefile.am, score/preinstall.am: malloc never blocks so the
Region Manager is quite heavy for implementing this. This patch
implements the C Program Heap directly in terms of the new Protected
Heap handler. This handler is a direct use of a SuperCore Heap in
conjunction with the Allocator Mutex used internally by RTEMS. This
saves 3184 bytes on most SPARC test executables.
* score/include/rtems/score/protectedheap.h, score/src/pheapallocate.c,
score/src/pheapallocatealigned.c, score/src/pheapextend.c,
score/src/pheapfree.c, score/src/pheapgetblocksize.c,
score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c,
score/src/pheapinit.c, score/src/pheapresizeblock.c,
score/src/pheapwalk.c: New files.
|
|
|
|
| |
* rtems/bfin/bf533.h: Fix warnings about constants being too large.
|
|
|
|
|
|
| |
* rtems/score/cpu.h:
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
|
|
|
|
| |
Eliminate evil casts.
|
|
|
|
|
| |
* cpu.c, rtems/score/cpu.h:
Use Context_Control_fp* instead of void* for fp_contexts.
|
| |
|
|
|
|
|
| |
* cpu.c:
Use Context_Control_fp* instead of void* for fp_contexts.
|
|
|
|
|
|
| |
* rtems/score/cpu.h:
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
|
|
|
|
| |
Eliminate evil casts.
|
|
|
|
|
|
| |
* rtems/score/cpu.h:
Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
|