Ignore:
Timestamp:
Jul 20, 1995, 7:20:31 PM (26 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/startup/setvec.c

    r3b170f5 r9e738b65  
    3838
    3939  if ( type )  {
    40       rtems_interrupt_catch( handler, vector,
    41                              (rtems_isr_entry *) &previous_isr );
     40     rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr);
    4241  } else {
    43       /* Interrupt goes straight to the supplied ISR.  This code is     */
    44       /* slightly different than that in _CPU_ISR_install_vector        */
    45       /* (which is eventually called by the above) in that this code    */
    46       /* returns the raw entry point as the old handler, while the      */
    47       /* other version returns the old entry point pointed at by the    */
    48       /* rtems ISR table.                                               */
    49       _go32_dpmi_seginfo        handler_info;
    50 
    51       /* get the address of the old handler */
    52       _go32_dpmi_get_protected_mode_interrupt_vector( vector, &handler_info);
    53 
    54       /* Notice how we're failing to save the pm_segment portion of the */
    55       /* structure here?  That means we might crash the system if we    */
    56       /* try to restore the ISR.  Can't fix this until i386_isr is      */
    57       /* redefined.  XXX [BHC].                                         */
    58       previous_isr = (i386_isr_entry) handler_info.pm_offset;
    59      
    60       /* install the IDT entry */
    61       handler_info.pm_offset   = (u_long)handler;
    62       handler_info.pm_selector = _go32_my_cs();
    63       _go32_dpmi_set_protected_mode_interrupt_vector( vector, &handler_info);
     42     _CPU_ISR_install_raw_handler( vector, handler, (proc_ptr *)&previous_isr);
    6443  }
    6544  return previous_isr;
Note: See TracChangeset for help on using the changeset viewer.