summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/timer/timer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move benchmark timer to bspsSebastian Huber2018-04-201-552/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Improve interrupt vector enable/disable APISebastian Huber2017-06-201-6/+1
| | | | | | Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable() to not return a status code. Add bsp_interrupt_assert() and use it to validate the vector number in the vector enable/disable implementations.
* bsps/i386: replace global interrupt disable by SMP build supporting locking.Pavel Pisa2016-10-171-6/+39
|
* bsp/pc386: Use irq-generic.Chris Johns2016-05-111-5/+5
|
* i386/pc386: Eliminate multiple warningsJoel Sherrill2014-10-101-18/+21
|
* Use correct prototype of benchmark_timer_read()Joel Sherrill2014-09-161-3/+3
| | | | | | | | | | | | | | This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* 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-03-04 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-03-041-8/+23
| | | | * timer/timer.c: Retry up to 5 times when the calibration loop fails.
* 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-091-1/+1
| | | | | * timer/timer.c: Include <rtems/btimer.h>. Fix benchmark_timer_read() definition.
* 2011-01-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-01-281-1/+1
| | | | | | | * clock/rtc.c, console/console.c, console/inch.c, console/outch.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, startup/bspcmdline.c, startup/bspstart.c, startup/ldsegs.S, timer/timer.c, timer/timerisr.S: Fix typo where license said found in found in.
* 2010-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-211-1/+2
| | | | * timer/timer.c: Do not do the indirect call if NULL.
* 2010-05-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-05-101-277/+219
| | | | * timer/timer.c: Now runs on 486 and below again. Reformatted.
* 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-12-031-21/+6
| | | | | | | | | Michael South <msouth@msouth.org> PR 1344/bsps * configure.ac, clock/ckinit.c, timer/timer.c: Add use of TSC for nanoseconds granularity. i8254 is very slow on some systems. TSC use is auto-detected by default.
* Convert to "bool".Ralf Corsepius2008-09-051-3/+3
|
* Eliminate rtems_boolean.Ralf Corsepius2008-09-021-1/+1
|
* Eliminate rtems_boolean.Ralf Corsepius2008-09-021-4/+4
|
* 2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-08-311-38/+26
| | | | | * timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
* 2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-08-311-28/+28
| | | | | * timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
* Add missing prototypes.Ralf Corsepius2008-08-181-5/+5
|
* Remove C++-style comments.Ralf Corsepius2005-11-061-2/+2
|
* 2005-08-23 Karel Gardas <kgardas@objectsecurity.com>>Joel Sherrill2005-08-311-13/+62
| | | | | | | | | | | * timer/timer.c: Enhance to use either interupt-based timer functions on older CPUs or to use TSC-based timer functions on more recent (Pentium and above) CPUs. The decision is made in Timer_initialize function when it is called for the first time based on a result obtained from cpuid instruction during the BSP initialization phase. During the first call, there are also late bindings to the implementation functions initialized to appropriate values.
* 2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-061-1/+1
| | | | | | | * 3c509/3c509.c, clock/ckinit.c, console/console.c, console/fb_vga.c, console/inch.c, console/ps2_mouse.c, console/serial_mouse.c, ne2000/ne2000.c, timer/timer.c, wd8003/wd8003.c: Moved irq.h to bsp subdirectory.
* 2005-04-18 Eric Valette <eric.valette@free.fr>Jennifer Averett2005-04-181-1/+2
| | | | | * clock/ckinit.c, console/console.c, console/ps2_mouse.c, console/serial_mouse.c, timer/timer.c: Added parameter to irq handler
* Remove duplicate white lines.Ralf Corsepius2004-04-211-10/+0
|
* Remove stray white spaces.Ralf Corsepius2004-04-211-33/+33
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-6/+0
|
* 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-311-8/+8
| | | | | | * clock/ckinit.c, clock/rtc.c, console/inch.c, ide/ide.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
* 2003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-1/+1
| | | | | | | | * clock/ckinit.c, clock/rtc.c, console/console.c, console/inch.c, console/outch.c, ide/ide.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, start/start.S, startup/bspstart.c, startup/exit.c, startup/ldsegs.S, startup/linkcmds, timer/timer.c, timer/timerisr.S: URL for license changed.
* 2000-12-05 Eric Valette <valette@crf.canon.fr>Joel Sherrill2000-12-051-100/+198
| | | | | | | | | | | | | * console/inch.c, console/keyboard.c, console/pc_keyb.c, console/vt.c, include/bsp.h: Correct incorrect interrupt level handling in new keyboard management code. Correct BSP_poll_char initialization routine. * start/start.S, startup/bspstart.c: Correct when the video is initialized. * timer/timer.c (Calibrate_1ms_loop): Address problem where this did not work correctly on all PC speeds. The new calibrate routine has been tested on Pentium 166, pentium II 200, pentium III 300 Mhz and does work as expected.
* Updated copyright notice.Joel Sherrill1999-11-171-2/+1
|
* Removed warnings.Joel Sherrill1999-03-311-4/+1
|
* Patch from Rosimildo DaSilva <rdasilva@connecttel.com> andJoel Sherrill1999-03-261-45/+115
| | | | | | Emmanuel Raguet <raguet@crf.canon.fr> to eliminate a problem during the boot process on the pc386 BSP. On fast PC's the calibration routine would hand.
* Large patch from Erik Ivanenko <erik.ivanenko@utoronto.ca> whichJoel Sherrill1998-10-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | moves pieces of the pc386 bsp up to a shared level for all i386 BSPs and modifies the i386ex BSP to use those shared pieces. Serial remote debugging is included for both targets. Erik's notes: There are several workarounds in it: 1) #define NEXT_GAS is hardcoded in pc386/start/start.s 2) #define NEXT_GAS is hardcoded in i386ex/start/start.s 3) #define NEW_GAS is hardcoded in pc386/start16.s 4) #undef __assert and redeclare _assert hardcoded in console.c for both pc386 and i386ex due to my egcs1.1b ~ newlib problem. Should have modified t-rtems.cfg ( no time ) I've tested pc386 with both video and serial consoles and GDB remote. All work fine, except that GDB acts weird. ( re: other posting) I hope this will work for you. It took quite some time to locate the autoconf error. The remainder was just grunt work. Unfortunately, I think I've unwound the removal of the IBMPCInitVideo stuff. Sorry. I REALLY can't spend more time... I've been at this conversion to 4.0 locally and updating the release since Sept. 8th, and have yet to compile my network driver.... This is as much as I can do right now. I look forward to the next patch to really test i368ex. I did make sure that the sample tests worked for pc386.
* Patch from Emmanuel Raguet <raguet@crf.canon.fr>:Joel Sherrill1998-09-101-0/+99
| | | | | | | | | After some good comments from Eric Norum [thanks, Eric !], I have added some modifications to my previous driver patch : - wait for transmitter ready before sending a packet, - new delay management in case of ring-overwritting.
* Patch from Aleksey <qqi@world.std.com>:Joel Sherrill1998-08-191-5/+10
| | | | | | It fixes netboot build problem, KA9Q configuration for pc386, some compiler wardning, it also removed some stuff ifdef'ed with '#if 0'.
* Patch from Eric Valette <valette@crf.canon.fr> which brings the i386ex BSPJoel Sherrill1998-08-051-1/+1
| | | | inline with the new IRQ structure.
* Patch from Eric VALETTE <valette@crf.canon.fr>:Joel Sherrill1998-07-231-20/+52
| | | | | | | | | | | | | Here is a enhanced version of my previous patch. This patch enables to potentially share the new interrupt management code for all Intel targets (pc386, go32 and force386) bsp. Note : this patch is complete only for pc386. It still needs to be completed for go32 and force386. I carrefully checked that anything needed is in for force386 (only some function name changes for IDT manipulation and GDT segment manipulation). But anyway I will not be able to test any of theses targets...
* updated copyright to 1998Joel Sherrill1998-02-171-1/+1
|
* Ralf Corsepius reported a number of missing CVS Id's:Joel Sherrill1998-01-161-7/+9
| | | | | | | | | | > RTEMS is under CVS control and has been since rtems 3.1.16 which was > around May 1995. So I just to add the $Id$. If you notice other files > with missing $Id$'s let me know. I try to keep w\up with it. Now that you have asked -- I'll attach a list of files lacking an RCS-Id to this mail. This list has been generated by a little sh-script I'll also enclose.
* Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto RomanoJoel Sherrill1997-12-011-0/+256
<pmcnr@camoes.rnl.ist.utl.pt> and Jose Rufino <ruf@asterix.ist.utl.pt> of NavIST (http://pandora.ist.utl.pt/).