summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-06-26score: Simplify <rtems/system.h>Sebastian Huber1-0/+1
Drop the <rtems/score/percpu.h> include since this file exposes a lot of implementation details.
2015-05-29bsps/powerpc: Fix potential integer overflowSebastian Huber1-1/+1
Update #2356.
2015-05-20bsps: Convert clock drivers to use a timecounterAlexander Krutwig1-78/+29
Update #2271.
2015-01-30bsps/powerpc: Fix a clock driverNick Withers1-9/+57
PowerPC Book E: Account for an extra tick period if a tick increment's pending. Close #2230.
2014-10-16libcpu/powerpc/mpc6xx: Fix warningsJoel Sherrill1-27/+2
2014-10-09libcpu/powerpc/mpc6xx/clock/c_clock.c: Fix warning and clean upJoel Sherrill1-50/+39
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2013-05-31score: Remove idle field of Per_CPU_ControlSebastian Huber1-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().
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-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-242011-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-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-112011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-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.
2009-11-30Whitespace removal.Ralf Corsepius1-5/+5
2009-10-31moved timebase/decrementer access from cpukit to libcpuThomas Doerfler1-0/+1
2008-09-052008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-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-052008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-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-162008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-17/+31
* mpc6xx/clock/c_clock.c: Add fast idle.
2007-12-012007-11-30 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-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-212007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-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-172007-04-17 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-2/+20
* mpc6xx/clock/c_clock.c: Add initial cut at nanoseconds since last tick handler.
2006-04-052006-04-05 Victor V. Vengerov <Victor.Vengerov@oktetlabs.ru>Joel Sherrill1-4/+13
* mpc6xx/clock/c_clock.c: Now works with MPCI SHM driver.
2005-11-032005-11-03 straumanatslacdotstanford.eduTill Straumann1-0/+3
* mpc6xx/clock/c_clock.c: disable interrupts around decrementer update to eliminate a race condition
2005-07-28Changes provided by Phillip Sorensen <pas37@cornell.edu> to get MVME550 BSP ↵Eric Norum1-1/+1
running.
2005-04-152005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-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-222004-05-22 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill1-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.
2004-04-15Remove stray white spaces.Ralf Corsepius1-6/+0
2004-03-312004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-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-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-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-312002-10-31 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+2
* mpc6xx/clock/c_clock.c, mpc6xx/exceptions/raw_exception.c, mpc6xx/mmu/bat.c: Removed warnings.
2002-04-182002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-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-042002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-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-122001-10-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-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-182000-10-18 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-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.
2000-01-11Removed old hack of using Configuration Table entry ticks_per_timesliceJoel Sherrill1-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.
2000-01-03Combination of coverhd.h cleanup and MVME23xx/MCP750 patch from Eric ValetteJoel Sherrill1-2/+2
<valette@crf.canon.fr> and Jay Kulpinski <jskulpin@eng01.gdds.com>.
1999-12-02Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.Joel Sherrill1-81/+48
As part of this effort, the mpc750 libcpu code is now shared with the ppc6xx.
1999-02-18./clock/Makefile.in,vJoel Sherrill1-20/+15
./clock/clock.c,v ./console/Makefile.in,v ./console/config.c,v ./console/console.c,v ./console/console.h,v ./console/debugio.c,v ./console/i8042.c,v ./console/i8042_p.h,v ./console/i8042vga.c,v ./console/i8042vga.h,v ./console/ns16550.c,v ./console/ns16550.h,v ./console/ns16550_p.h,v ./console/ns16550cfg.c,v ./console/ns16550cfg.h,v ./console/vga.c,v ./console/vga_p.h,v ./console/z85c30.c,v ./console/z85c30.h,v ./console/z85c30_p.h,v ./console/z85c30cfg.c,v ./console/z85c30cfg.h,v ./include/Makefile.in,v ./include/bsp.h,v ./include/chain.h,v ./include/coverhd.h,v ./include/extisrdrv.h,v ./include/nvram.h,v ./include/pci.h,v ./include/tod.h,v ./network/Makefile.in,v ./network/amd79c970.c,v ./network/amd79c970.h,v ./nvram/Makefile.in,v ./nvram/ds1385.h,v ./nvram/mk48t18.h,v ./nvram/nvram.c,v ./nvram/prepnvr.h,v ./nvram/stk11c68.h,v ./pci/Makefile.in,v ./pci/pci.c,v ./start/Makefile.in,v ./start/start.s,v ./startup/Makefile.in,v ./startup/bspclean.c,v ./startup/bspstart.c,v ./startup/bsptrap.s,v ./startup/device-tree,v ./startup/genpvec.c,v ./startup/linkcmds,v ./startup/rtems-ctor.cc,v ./startup/sbrk.c,v ./startup/setvec.c,v ./startup/spurious.c,v ./startup/swap.c,v ./timer/Makefile.in,v ./timer/timer.c,v ./tod/Makefile.in,v ./tod/cmos.h,v ./tod/tod.c,v ./universe/Makefile.in,v ./universe/universe.c,v ./vectors/Makefile.in,v ./vectors/README,v ./vectors/align_h.s,v ./vectors/vectors.s,v ./wrapup/Makefile.in,v ./Makefile.in,v ./README,v ./STATUS,v ./bsp_specs,v
1998-05-30Changed calculaction for Clock_Decrementer_value to use theJoel Sherrill1-2/+4
BSP_configuration table.
1998-05-30Updated to current source and removed warnings.Joel Sherrill1-11/+4
1998-05-30New files -- from rtems-LM-980406 which was based on an RTEMS from 12/97.Joel Sherrill1-29/+40
This was called the dmv170 BSP in that source tree but since the DMV171 is now obsolete, we have transitioned to the DMV177 and have no intention of checking compatibility with any other models.
1998-04-15Transitioned to shared bsp_libc_init() and cleaned up comments.Joel Sherrill1-5/+5
1998-04-14new filesJoel Sherrill1-45/+23
1998-02-17updated copyright to 1998Joel Sherrill1-1/+1
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill1-5/+5
of switching to the modified GNU GPL.
1996-12-02Replacement for the sis bsp which supports the simulator and realJoel Sherrill1-0/+262
hardware. From Jiri Gaisler <jgais@wd.estec.esa.nl>. Supports sis 2.6 and later.