Changeset ee07b997 in rtems


Ignore:
Timestamp:
Mar 10, 2010, 5:16:02 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
543f17b3
Parents:
5deb608
Message:

2010-03-10 Gedare Bloom <gedare@…>

PR 1495/bsp

  • clock/ckinit.c, make/custom/pc386.cfg: Calling rtems_clock_get_uptime() in a tight loop sometimes showed time moving backwards.
Location:
c/src/lib/libbsp/i386/pc386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r5deb608 ree07b997  
     12010-03-10      Gedare Bloom <gedare@gwu.edu>
     2
     3        PR 1495/bsp
     4        * clock/ckinit.c, make/custom/pc386.cfg: Calling
     5        rtems_clock_get_uptime() in a tight loop sometimes showed time moving
     6        backwards.
     7
    182009-12-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    r5deb608 ree07b997  
    4848#define CLOCK_DRIVER_ISRS_PER_TICK pc386_isrs_per_tick
    4949
     50/* if so, the driver may use the count in Clock_driver_support_at_tick */
     51#ifdef CLOCK_DRIVER_ISRS_PER_TICK
     52extern volatile uint32_t Clock_driver_isrs;
     53#endif
     54
    5055#define READ_8254( _lsb, _msb )                               \
    5156  do { outport_byte(TIMER_MODE, TIMER_SEL0|TIMER_LATCH);      \
     
    6772void Clock_driver_support_at_tick_tsc(void)
    6873{
     74#ifdef CLOCK_DRIVER_ISRS_PER_TICK
     75  /*
     76   *  The driver is multiple ISRs per clock tick.
     77  */
     78  if (!Clock_driver_isrs)
     79    pc586_tsc_at_tick = rdtsc();
     80#else
     81  /*
     82   *  The driver is one ISR per clock tick.
     83   */
    6984  pc586_tsc_at_tick = rdtsc();
     85#endif
    7086}
    7187
  • c/src/lib/libbsp/i386/pc386/make/custom/pc386.cfg

    r5deb608 ree07b997  
    4444LDFLAGS += -Wl,-Ttext,$(RELOCADDR)
    4545
    46 define bsp-post-link
    47         $(default-bsp-post-link)
    48         $(OBJCOPY) -O elf32-i386 \
    49             --remove-section=.comment \
    50             --remove-section=.note \
    51             --strip-unneeded $(basename $@).exe $(basename $@).nxe
    52         $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin
    53         $(PROJECT_TOOLS)/bin2boot -v $(basename $@)$(DOWNEXT) $(HEADERADDR)\
    54           $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
    55         rm -f $(basename $@).nxe
    56 endef
     46#define bsp-post-link
     47#       $(default-bsp-post-link)
     48#       $(OBJCOPY) -O elf32-i386 \
     49#           --remove-section=.comment \
     50#           --remove-section=.note \
     51#           --strip-unneeded $(basename $@).exe $(basename $@).nxe
     52#       $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin
     53#       $(PROJECT_TOOLS)/bin2boot -v $(basename $@)$(DOWNEXT) $(HEADERADDR)\
     54#         $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
     55#       rm -f $(basename $@).nxe
     56#endef
    5757
    5858# BSP-specific tools
Note: See TracChangeset for help on using the changeset viewer.