| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* rtems/score/cpu.h, rtems/score/m68k.h: Change declaration of _VBR.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 746/rtems
Optimize realloc(). The problem is that realloc() can neither grow
nor shrink efficiently the current memory region without support
from underlying heap/region modules. The patch introduces one new
routine for each of heap and region modules, _Heap_Resize_block(),
and rtems_region_resize_segment(), respectively, and uses the
latter to optimize realloc().
The implementation of _Heap_Resize_block() lead to changing of the
heap allocation strategy: now the heap manager, when splits larger
free block into used and new free parts, makes the first part of
the block used, not the last one as it was before. Due to this new
strategy, _Heap_Resize_block() never needs to change the user
pointer.
Caveat: unlike previous heap implementation, first few bytes of
the contents of the memory allocated from the heap are now almost
never all zero. This can trigger bugs in client code that have not
been visible before this patch.
* libcsupport/src/malloc.c (realloc): try to resize segment in
place using new rtems_region_resize_segment() routine before
falling back to the malloc()/free() method.
* score/src/heap.c:
(_Heap_Initialize): change initial heap layout to reflect new
allocation strategy of using of the lower part of a previously
free block when splitting it for the purpose of allocation.
(_Heap_Block_allocate): when split, make the lower part used, and
leave the upper part free. Return type changed from Heap_Block* to
uint32_t.
* score/include/rtems/score/heap.h:
(Heap_Statistics): added 'resizes' field.
(Heap_Resize_status): new enum.
(_Heap_Resize_block): new routine.
(_Heap_Block_allocate): return type changed from Heap_Block* to
uint32_t.
* score/src/heapwalk.c: reflect new heap layout in checks.
* score/src/heapsizeofuserarea.c: more assertions added.
* score/src/heapresizeblock.c: new file.
(_Heap_Resize_block): new routine.
* score/src/heapfree.c: reverse the checks _Heap_Is_block_in() and
_Heap_Is_prev_used() on entry to be in this order.
* score/src/heapallocate.c, score/src/heapallocatealigned.c:
ignore return value of _Heap_Block_allocate().
* score/Makefile.am (HEAP_C_FILES): added src/heapresizeblock.c.
* rtems/include/rtems/rtems/region.h:
(rtems_region_resize_segment): new interface routine.
(_Region_Process_queue): new internal routine called from
rtems_region_resize_segment() and rtems_region_return_segment().
* rtems/src/regionreturnsegment.c: move queue management code into
the new internal routine _Region_Process_queue() and call it.
* rtems/src/regionresizesegment.c: new file.
(rtems_region_resize_segment): new interface routine.
* rtems/src/regionprocessqueue.c: new file.
(_Region_Process_queue): new internal routine containing queue
management code factored out from 'regionreturnsegment.c'.
* rtems/Makefile.am (REGION_C_FILES): Added
src/regionresizesegment.c, and src/regionprocessqueue.c.
* ada/rtems.adb, ada/rtems.ads: Added Region_Resize_Segment.
|
|
|
|
| |
* rtems/score/powerpc.h: Removed warning
|
|
|
|
| |
* rtems/score/m68k.h: Change _ColdFire_VBR to _VBR.
|
|
|
|
|
| |
* rtems/score/cpu.h: Change definition of _VBR to a simple pointer.
* rtems/score/m68k.h: Remove use of _Coldfire_VBR.
|
|
|
|
| |
* cpu.c: Remove warning.
|
|
|
|
| |
* score/src/objectidtoname.c: Removed warnings
|
|
|
|
| |
* score/src/objectidtoname.c: Fixed spacing.
|
|
|
|
| |
* score/src/objectidtoname.c: Add enable dispatch
|
|
|
|
| |
* rtems/asm.h: Eliminate warnings.
|
|
|
|
| |
* score/cpu/Makefile.am: Remove or32 (target abandoned).
|
| |
|
|
|
|
|
|
|
| |
* rtems/score/types.h, rtems/score/cpu.h,
rtems/score/cpu_asm.h, rtems/score/or32.h,
rtems/asm.h, Makefile.am, cpu.c, cpu_asm.c,
preinstall.am: Remove.
|
|
|
|
|
| |
* rtems/score/powerpc.h: Add "defined(mpc7400) || defined(mpc7450)
|| defined(mpc7455)" to altivec (gcc-3.2.x compatibility).
|
| |
|
|
|
|
|
| |
PR doc/763
* score/Doxyfile: Fixed path to no_cpu.
|
| |
|
|
|
|
| |
* rtems/score/cpu.h: Remove traces from NO_CPU.
|
| |
|
|
|
|
| |
* rtems/score/cpu.h: Remove traces from NO_CPU.
|
|
|
|
| |
CPU_IDLE_TASK_IS_FP, CPU_SOFTWARE_FP): New.
|
|
|
|
| |
CPU_IDLE_TASK_IS_FP): Remove.
|
|
|
|
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
CPU_IDLE_TASK_IS_FP): Remove.
* rtems/old-exceptions/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
CPU_IDLE_TASK_IS_FP): Remove.
* rtems/score/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
CPU_IDLE_TASK_IS_FP, CPU_SOFTWARE_FP): New.
|
|
|
|
|
| |
* rtems/score/cpu.h: Derive CPU_{BIG|LITTLE}_ENDIAN from
__BIG_ENDIAN__.
|
|
|
|
| |
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN, CPU_LITTLE_ENDIAN): Add.
|
|
|
|
| |
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN, CPU_LITTLE_ENDIAN): Remove
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/score/cpu.h (CPU_PROVIDES_IDLE_THREAD_BODY,
CPU_STACK_GROWS_UP, CPU_STRUCTURE_ALIGNMENT,
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN,
CPU_LITTLE_ENDIAN): Add.
* rtems/old-exceptions/cpu.h (CPU_PROVIDES_IDLE_THREAD_BODY,
CPU_STACK_GROWS_UP, CPU_STRUCTURE_ALIGNMENT,
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN,
CPU_LITTLE_ENDIAN): Remove.
* rtems/new-exceptions/cpu.h (CPU_PROVIDES_IDLE_THREAD_BODY,
CPU_STACK_GROWS_UP, CPU_STRUCTURE_ALIGNMENT,
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN,
CPU_LITTLE_ENDIAN): Remove.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/score/cpu.h:
(rtems_cpu_configuration_get_serial_per_sec,
rtems_cpu_configuration_get_serial_external_clock,
rtems_cpu_configuration_get_serial_xon_xoff,
rtems_cpu_configuration_get_serial_cts_rts,
rtems_cpu_configuration_get_serial_rate,
rtems_cpu_configuration_get_timer_average_overhead,
rtems_cpu_configuration_get_timer_least_valid,
rtems_cpu_configuration_get_timer_internal_clock,
rtems_cpu_configuration_get_clock_speed): New.
* rtems/old-exceptions/cpu.h:
(rtems_cpu_configuration_get_serial_per_sec,
rtems_cpu_configuration_get_serial_external_clock,
rtems_cpu_configuration_get_serial_xon_xoff,
rtems_cpu_configuration_get_serial_cts_rts,
rtems_cpu_configuration_get_serial_rate,
rtems_cpu_configuration_get_timer_average_overhead,
rtems_cpu_configuration_get_timer_least_valid,
rtems_cpu_configuration_get_timer_internal_clock,
rtems_cpu_configuration_get_clock_speed): Remove.
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h
(rtems_cpu_table): Sync defines between {old|new}-exceptions.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (Context_Control,
Context_Control_fp, CPU_Interrupt_frame): Remove.
* rtems/old-exceptions/cpu.h (Context_Control,
Context_Control_fp, CPU_Interrupt_frame): Remove.
* rtems/score/cpu.h (Context_Control,
Context_Control_fp, CPU_Interrupt_frame): Add.
|
|
|
|
| |
CPU_PARTITION_ALIGNMENT, CPU_STACK_ALIGNMENT): Add.
|
|
|
|
| |
CPU_PARTITION_ALIGNMENT, CPU_STACK_ALIGNMENT): Remove.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (CPU_STACK_MINIMUM_SIZE,
CPU_ALIGNMENT, CPU_HEAP_ALIGNMENT,
CPU_PARTITION_ALIGNMENT, CPU_STACK_ALIGNMENT): Remove.
* rtems/old-exceptions/cpu.h (CPU_STACK_MINIMUM_SIZE,
CPU_ALIGNMENT, CPU_HEAP_ALIGNMENT,
CPU_PARTITION_ALIGNMENT, CPU_STACK_ALIGNMENT): Remove.
* rtems/score/cpu.h (CPU_STACK_MINIMUM_SIZE,
CPU_ALIGNMENT, CPU_HEAP_ALIGNMENT,
CPU_PARTITION_ALIGNMENT, CPU_STACK_ALIGNMENT): Add.
|
|
|
|
| |
* rtems/new-exceptions/cpu.h: Remove CPU_MINIMUM_STACK_FRAME_SIZE.
|
|
|
|
| |
_CPU_Priority_bits_index): New.
|
|
|
|
| |
_CPU_Priority_bits_index): Remove.
|
|
|
|
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (_CPU_Bitfield_Find_first_bit,
_CPU_Priority_Mask, _CPU_Priority_bits_index): Remove.
* rtems/old-exceptions/cpu.h (_CPU_Bitfield_Find_first_bit,
_CPU_Priority_Mask, _CPU_Priority_bits_index): Remove.
* rtems/score/cpu.h (_CPU_Bitfield_Find_first_bit,
_CPU_Priority_Mask, _CPU_Priority_bits_index): New.
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (_CPU_msrs): Remove (Unused).
* rtems/old-exceptions/cpu.h (_CPU_msrs): Remove (Unused).
|
|
|
|
| |
_CPU_Context_switch, _CPU_Context_restore, _CPU_Context_save_fp, _CPU_Context_restore_fp, _CPU_Fatal_error): New.
|
|
|
|
| |
_CPU_Context_switch, _CPU_Context_restore, _CPU_Context_save_fp, _CPU_Context_restore_fp, _CPU_Fatal_error): Remove.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/new-exceptions/cpu.h (_CPU_ISR_install_vector,
_CPU_Initialize, _CPU_Install_interrupt_stack, _CPU_Context_switch,
_CPU_Context_restore, _CPU_Context_save_fp, _CPU_Context_restore_fp,
_CPU_Fatal_error): Remove.
* rtems/old-exceptions/cpu.h (_CPU_ISR_install_vector,
_CPU_Initialize, _CPU_Install_interrupt_stack, _CPU_Context_switch,
_CPU_Context_restore, _CPU_Context_save_fp, _CPU_Context_restore_fp,
_CPU_Fatal_error): Remove.
* rtems/score/cpu.h (_CPU_ISR_install_vector,
_CPU_Initialize, _CPU_Install_interrupt_stack, _CPU_Context_switch,
_CPU_Context_restore, _CPU_Context_save_fp, _CPU_Context_restore_fp,
_CPU_Fatal_error): New.
|
|
|
|
| |
_CPU_Context_Initialize_fp): New.
|
|
|
|
| |
_CPU_Context_Initialize_fp): Remove.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/old-exceptions/cpu.h (_CPU_Context_Initialize,
_CPU_Context_Restart_self, _CPU_Context_Fp_start,
_CPU_Context_Initialize_fp): Remove.
* rtems/new-exceptions/cpu.h (_CPU_Context_Initialize,
_CPU_Context_Restart_self, _CPU_Context_Fp_start,
_CPU_Context_Initialize_fp): Remove.
* rtems/score/cpu.h (_CPU_Context_Initialize,
_CPU_Context_Restart_self, _CPU_Context_Fp_start,
_CPU_Context_Initialize_fp): New.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* rtems/old-exceptions/cpu.h (PPC_Get_timebase_register): Remove.
* rtems/powerpc/registers.h (PPC_Get_timebase_register,
PPC_Set_timebase_register): Remove.
* rtems/score/cpu.h (PPC_Get_timebase_register,
PPC_Set_timebase_register): New.
|