summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/powerpc: Move dec clock driver to bspsSebastian Huber2018-03-261-266/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* score: Add and use Thread_Control::is_idleSebastian Huber2016-11-091-5/+1
| | | | Update #2797.
* score: Introduce Thread_Entry_informationSebastian Huber2016-01-111-2/+2
| | | | | | | This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514.
* score: Simplify <rtems/system.h>Sebastian Huber2015-06-261-0/+1
| | | | | Drop the <rtems/score/percpu.h> include since this file exposes a lot of implementation details.
* bsps/powerpc: Fix potential integer overflowSebastian Huber2015-05-291-1/+1
| | | | Update #2356.
* bsps: Convert clock drivers to use a timecounterAlexander Krutwig2015-05-201-78/+29
| | | | Update #2271.
* bsps/powerpc: Fix a clock driverNick Withers2015-01-301-9/+57
| | | | | | | PowerPC Book E: Account for an extra tick period if a tick increment's pending. Close #2230.
* libcpu/powerpc/mpc6xx: Fix warningsJoel Sherrill2014-10-161-27/+2
|
* libcpu/powerpc/mpc6xx/clock/c_clock.c: Fix warning and clean upJoel Sherrill2014-10-091-50/+39
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* score: Remove idle field of Per_CPU_ControlSebastian Huber2013-05-311-2/+5
| | | | | | This field is unused except for special case simulator clock drivers. In these places use an alternative. Add and use _Thread_Set_global_exit_status() and _Thread_Get_global_exit_status().
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 2011-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-08-241-1/+0
| | | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/mmu/mmuAsm.S, new-exceptions/bspsupport/ppc_exc_global_handler.c, shared/include/cpuIdent.c, shared/src/stack.c: Update due to API changes.
* 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-111-1/+1
| | | | | | | | | | | | | | * e500/mmu/mmu.c, mpc505/ictrl/ictrl.c, mpc505/timer/timer.c, mpc5xx/ictrl/ictrl.c, mpc5xx/timer/timer.c, mpc6xx/altivec/vec_sup.c, mpc6xx/clock/c_clock.c, mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/pte121.c, mpc8260/timer/timer.c, mpc8xx/timer/timer.c, new-exceptions/cpu.c, new-exceptions/bspsupport/ppc_exc_initialize.c, ppc403/clock/clock.c, ppc403/console/console.c, ppc403/console/console.c.polled, ppc403/console/console405.c, ppc403/irq/ictrl.c, ppc403/tty_drv/tty_drv.c, rtems/powerpc/cache.h, shared/include/powerpc-utility.h, shared/src/cache.c: Use "__asm__" instead of "asm" for improved c99-compliance.
* Whitespace removal.Ralf Corsepius2009-11-301-5/+5
|
* moved timebase/decrementer access from cpukit to libcpuThomas Doerfler2009-10-311-0/+1
|
* 2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-09-051-42/+0
| | | | | | | | | * mpc5xx/clock/clock.c, mpc6xx/clock/c_clock.c, mpc8260/clock/clock.c, mpc8xx/clock/clock.c, ppc403/clock/clock.c, ppc403/clock/clock_4xx.c: The Shared Memory Driver no longer requires the special IOCTL in Clock_control. This was a hack which has existed since before the Classic API Timer Manager was implemented. All implementations of and references to Clock_control were removed.
* 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-051-1/+1
| | | | | * mpc6xx/clock/c_clock.c: CLOCK_DRIVER_USE_FAST_IDLE must be checked to be equal to 1 -- not just defined.
* 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-161-17/+31
| | | | * mpc6xx/clock/c_clock.c: Add fast idle.
* 2007-11-30 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-12-011-4/+92
| | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h: added support for bookE/ppc405 style CPUs where the decrementer works slightly differently.
* 2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-05-211-2/+6
| | | | | * mpc6xx/clock/c_clock.c: Tinker with math so it does not overflow on psim and give a negative nanoseconds since last tick.
* 2007-04-17 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-04-171-2/+20
| | | | | * mpc6xx/clock/c_clock.c: Add initial cut at nanoseconds since last tick handler.
* 2006-04-05 Victor V. Vengerov <Victor.Vengerov@oktetlabs.ru>Joel Sherrill2006-04-051-4/+13
| | | | * mpc6xx/clock/c_clock.c: Now works with MPCI SHM driver.
* 2005-11-03 straumanatslacdotstanford.eduTill Straumann2005-11-031-0/+3
| | | | | * mpc6xx/clock/c_clock.c: disable interrupts around decrementer update to eliminate a race condition
* Changes provided by Phillip Sorensen <pas37@cornell.edu> to get MVME550 BSP ↵Eric Norum2005-07-281-1/+1
| | | | running.
* 2005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-04-151-2/+2
| | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h, mpc8260/console-generic/console-generic.c: add parameter to new exception interrupt handlers in powerpc bsps
* 2004-05-22 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill2004-05-221-12/+23
| | | | | | | | | | PR 619/bsps * mpc6xx/clock/c_clock.c: The PPC decrementer must be reloaded on each clock tick. Currently, this is done by just reloading a fixed value. The attached patch takes into account the time that elapsed since the decrementer crossed zero in order to adjust the value to be re-loaded. Without the patch, the effective system clock cycle is increased by the exception handler latency.
* Remove stray white spaces.Ralf Corsepius2004-04-151-6/+0
|
* 2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-311-3/+3
| | | | | | | | | | | | | | | | * mpc505/timer/timer.c, mpc5xx/timer/timer.c, mpc6xx/clock/c_clock.c, mpc6xx/timer/timer.c, mpc8260/clock/clock.c, mpc8260/console-generic/console-generic.c, mpc8260/cpm/cp.c, mpc8260/cpm/dpram.c, mpc8260/include/cpm.h, mpc8260/include/mmu.h, mpc8260/include/mpc8260.h, mpc8260/mmu/mmu.c, mpc8260/timer/timer.c, mpc8xx/clock/clock.c, mpc8xx/console-generic/console-generic.c, mpc8xx/cpm/cp.c, mpc8xx/cpm/dpram.c, mpc8xx/include/cpm.h, mpc8xx/include/mmu.h, mpc8xx/include/mpc8xx.h, mpc8xx/mmu/mmu.c, mpc8xx/timer/timer.c, ppc403/clock/clock.c, ppc403/console/console.c, ppc403/console/console405.c, ppc403/ictrl/ictrl.c, ppc403/ictrl/ictrl.h, ppc403/timer/timer.c, ppc403/tty_drv/tty_drv.c, rtems/powerpc/cache.h, shared/src/cache.c: Convert to using c99 fixed size types.
* 2003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h, mpc6xx/exceptions/raw_exception.c, mpc6xx/exceptions/raw_exception.h, mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/mmuAsm.S, mpc6xx/timer/timer.c, mpc8260/clock/clock.c, mpc8260/console-generic/console-generic.c, mpc8260/cpm/brg.c, mpc8260/exceptions/raw_exception.c, mpc8260/exceptions/raw_exception.h, mpc8260/include/cpm.h, mpc8260/include/mmu.h, mpc8260/mmu/mmu.c, mpc8260/timer/timer.c, mpc8xx/clock/clock.c, mpc8xx/console-generic/console-generic.c, mpc8xx/exceptions/raw_exception.c, mpc8xx/exceptions/raw_exception.h, mpc8xx/include/cpm.h, mpc8xx/include/mmu.h, mpc8xx/mmu/mmu.c, mpc8xx/timer/timer.c, ppc403/clock/clock.c, ppc403/console/console.c.polled, ppc403/timer/timer.c, rtems/powerpc/debugmod.h, shared/include/byteorder.h, shared/include/cpuIdent.c, shared/include/cpuIdent.h, shared/include/io.h, shared/include/mmu.h, shared/include/page.h, shared/include/pgtable.h, shared/include/spr.h: URL for license changed.
* 2002-10-31 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-10-311-0/+2
| | | | | * mpc6xx/clock/c_clock.c, mpc6xx/exceptions/raw_exception.c, mpc6xx/mmu/bat.c: Removed warnings.
* 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-04-181-1/+1
| | | | | | | | | | | | | | | | | * shared/include/cpu.h: Removed. * shared/include/Makefile.am: Reflect changes above. * shared/include/spr.h: Include rtems/powerpc/registers.h instead of libcpu/cpu.h. * mpc6xx/clock/c_clock.c: Reflect changes to <rtems/score/cpu.h>. * mpc6xx/exceptions/asm_utils.S: Ditto. * mpc6xx/exceptions/raw_exception.c: Ditto. * mpc6xx/mmu/mmuAsm.S: Ditto. * mpc6xx/timer/timer.c: Ditto. * mpc8260/exceptions/asm_utils.S: Ditto. * mpc8260/exceptions/raw_exception.c: Ditto. * mpc8xx/exceptions/asm_utils.S: Ditto. * mpc8xx/exceptions/raw_exception.c: Ditto. * ppc403/vectors/vectors.S: Include <asm.h> instead of "asm.h".
* 2002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2002-01-041-1/+1
| | | | | | | | | * mpc6xx/clock/c_clock.c: Include rtems/bspIo.h instead of bspIo.h. * mpc6xx/mmu/bat.h: Include rtems/bspIo.h instead of bspIo.h. * mpc8260/console-generic/console-generic.c: Include rtems/bspIo.h instead of bspIo.h. * mpc8260/cpm/brg.c: Include rtems/bspIo.h instead of bspIo.h. * mpc8xx/console-generic/console-generic.c: Include rtems/bspIo.h instead of bspIo.h. * shared/include/cpuIdent.c: Include rtems/bspIo.h instead of bspIo.h.
* 2001-10-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-10-121-1/+0
| | | | | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h, mpc8xx/clock/clock.c, mpc8xx/timer/timer.c, new_exception_processing/cpu.c, new_exception_processing/cpu.h, new_exception_processing/cpu_asm.S, old_exception_processing/cpu.c, old_exception_processing/cpu.h, old_exception_processing/cpu_asm.S, old_exception_processing/rtems.S: Fixed typo.
* 2000-10-18 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-10-181-2/+3
| | | | | | | * mpc6xx/clock/c_clock.c, mpc6xx/clock/c_clock.h: Removed use of bsp.h and replaced it with use of proper interfaces or explicit externs of required functions and data. * mpc6xx/timer/timer.c: Ditto.
* Removed old hack of using Configuration Table entry ticks_per_timesliceJoel Sherrill2000-01-111-9/+5
| | | | | | | being set to 0 to indicate that there should be no Clock Tick. This was used by the Timing Tests to avoid clock tick overhead perturbing execution times. Now the Timing Tests simply leave the Clock Tick Driver out of the Device Driver Table.
* Combination of coverhd.h cleanup and MVME23xx/MCP750 patch from Eric ValetteJoel Sherrill2000-01-031-2/+2
| | | | <valette@crf.canon.fr> and Jay Kulpinski <jskulpin@eng01.gdds.com>.
* Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.Joel Sherrill1999-12-021-0/+208
As part of this effort, the mpc750 libcpu code is now shared with the ppc6xx.