Ignore:
Timestamp:
07/20/95 19:20:31 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1690c6b
Parents:
3b170f5
Message:

updating go32 to make timer more accurate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/go32/include/bsp.h

    r3b170f5 r9e738b65  
    3939 *  Define the interrupt mechanism for Time Test 27
    4040 *
    41  *  NOTE: Use a software interrupt for the i386.
     41 *  NOTE:  Use a software interrupt for the i386 family.
    4242 */
    43 #define MUST_WAIT_FOR_INTERRUTPT 0
     43#define MUST_WAIT_FOR_INTERRUPT 0
    4444#define Install_tm27_vector( handler ) set_vector( (handler), 0x90, 1 )
    4545#define Cause_tm27_intr()              asm volatile( "int $0x90" : : );
    4646#define Clear_tm27_intr()
    4747#define Lower_tm27_intr()
    48 
    4948
    5049/*
     
    106105#define         TIMER_BCD       0x01    /* count in BCD */
    107106
     107#define CLOCK_DISABLE() \
     108    ({ char mask; inport_byte( 0x21, mask ); outport_byte( 0x21, mask | 1 ); })
     109#define CLOCK_ENABLE()  \
     110    ({ char mask; inport_byte( 0x21, mask ); outport_byte( 0x21, mask & ~1); })
     111
    108112/*      The internal tick rate in ticks per second */
    109113#define         TIMER_TICK      1193182
     
    155159/* end of include file */
    156160
     161
Note: See TracChangeset for help on using the changeset viewer.