* mpc8260/console-generic/console-generic.c,
mpc8xx/console-generic/console-generic.c: Remove all references to
console_reserve_resources and termios_reserve_resources.
* mpc5xx/console-generic/console-generic.c, mpc5xx/include/console.h,
mpc8260/console-generic/console-generic.c, mpc8260/include/console.h,
mpc8xx/console-generic/console-generic.c, mpc8xx/include/console.h:
Remove all references to console_reserve_resources and
termios_reserve_resources.
* ChangeLog, Makefile.am: Remove all references to
console_reserve_resources and termios_reserve_resources.
* console/consolereserveresources.c: Removed.
* Makefile.am: Do not use intermediate .rel files unless from libcpu or
a network driver. This simplifies the Makefile.am and avoids pulling
in unneeded code.
* configure.ac, startup/exit.c: Add BSP_PRESS_KEY_FOR_RESET
configuration option. When this is set to one, a clean exit of an
application will result in the BSP resetting the hardware without
waiting for a human to press a key.
* start/start.S, startup/linkcmds: Replace the linkcmds with a
version very closely based upon the default in binutils 2.18 for
this target. This eliminated weird failures with C++ dtors even
in C applications. We had an extra _ on a symbol used in start.S.
* include/bsp.h, startup/bspstart.c: confdefs.h now wants
us to use BSP_INTERRUPT_STACK_SIZE instead of
CONFIGURE_INTERRUPT_STACK_MEMORY. Removed reference to
CONFIGURE_INTERRUPT_STACK_MEMORY from bspstart.c
* shared/startup/pretaskinghook.c: install pointer
to rtems_malloc_sbrk_helpers_table. This (and derived)
BSPs rely on sbrk delivering even the first/initial
chunk of memory.
* new-exceptions/bspsupport/irq.c: don't disable irqs
at the interrupt controller (PIC) during initialization -- this
caused problems where some BSPs's BSP_disable_irq_at_pic() routine
did not ignore IRQ lines associated with cascaded PICs.
Rely on the BSP (BSP_setup_the_pic()) to provide a good
initial setup.
* shared/startup/pretaskinghook.c: install pointer
to rtems_malloc_sbrk_helpers_table. This (and derived)
BSPs rely on sbrk delivering even the first/initial
chunk of memory.
* vmeUniverse/vmeTsi148.c: Initialize VME Master
'VTON' timer and bus-release policy to less aggressive
values than the chip's defaults. The default VTON easily
overrides any settings used by the DMA engine.
* new-exceptions/bspsupport/ppc_exc_asm_macros.h,
new-exceptions/bspsupport/ppc_exc.S,
new-exceptions/bspsupport/README,
new-exceptions/bspsupport/ppc_exc_hdl.c:
Thomas Doerfler clarified (thanks!) that raising an
exception and executing the 1st instruction is not
an atomical operation. I added a fix to the code that
checks if a lower-priority interrupt is under way:
we now not only test if the 'lock' variable was set
but also check if the interrupted PC points to the
'write lock' instruction.
Added more comments and updated README.
* rtems.adb, rtems.ads: Refactored rtems_clock_get into 5 methods
which are single purpose and more strongly typed. They are:
rtems_clock_get_tod - Get TOD in Classic API structure
rtems_clock_get_tod_timeval - Get TOD in struct timeval
rtems_clock_get_seconds_since_epoch - Get TOD as seconds since 1988
rtems_clock_get_ticks_since_boot - Get ticks since boot
rtems_clock_get_ticks_per_second - Get ticks per second
Also switch from using 'Unchecked_Access to 'Access.
Added pragma Convention C as required by gcc > 4.3.
Changed style of parenthese on subprogram calls to match GNAT.
* start/start.S, startup/bspstart.c: disable memory-select
errors early (in start.S) to avoid hangs due to speculative
memory access (motload maps absent memory in TLBs).
Remove TLB mappings for which no physical memory is installed
(bspstart). Enable HID1[RFXE] so that 'core_fault_in' errors
result in a machine-check rather than stalling the machine.
Re-enable memory-select errors at this point.