Changeset beefa112 in rtems for c/src/lib/libbsp/i386


Ignore:
Timestamp:
May 6, 2016, 7:51:26 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
292dbff
Parents:
b61f58f
git-author:
Chris Johns <chrisj@…> (05/06/16 07:51:26)
git-committer:
Chris Johns <chrisj@…> (05/11/16 01:45:01)
Message:

bsp/pc386: Use irq-generic.

Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    rb61f58f rbeefa112  
    2525
    2626#include <bsp.h>
    27 #include <bsp/irq.h>
     27#include <bsp/irq-generic.h>
    2828#include <bspopts.h>
    2929#include <libcpu/cpuModel.h>
     
    151151  pc386_clock_click_count = US_TO_TICK(pc386_microseconds_per_isr);
    152152
    153   BSP_irq_enable_at_i8259s( BSP_PERIODIC_TIMER - BSP_IRQ_VECTOR_BASE );
     153  bsp_interrupt_vector_enable( BSP_PERIODIC_TIMER - BSP_IRQ_VECTOR_BASE );
    154154
    155155  #if 0
     
    257257
    258258#include "../../../shared/clockdrv_shell.h"
    259 
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    rb61f58f rbeefa112  
    1717 *  expressed or implied.
    1818 *
    19  *  Based upon code by 
     19 *  Based upon code by
    2020 *  COPYRIGHT (c) 1989-1999.
    2121 *  On-Line Applications Research Corporation (OAR).
     
    2929#include <bsp.h>
    3030#include <rtems/btimer.h>
    31 #include <bsp/irq.h>
     31#include <bsp/irq-generic.h>
    3232#include <libcpu/cpuModel.h>
    3333
     
    119119   * disable interrrupt at i8259 level
    120120   */
    121    BSP_irq_disable_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
     121   bsp_interrupt_vector_disable(used->idtIndex - BSP_IRQ_VECTOR_BASE);
    122122   /* reset timer mode to standard (DOS) value */
    123123   outport_byte(TIMER_MODE, TIMER_SEL0|TIMER_16BIT|TIMER_RATEGEN);
     
    136136   * enable interrrupt at i8259 level
    137137   */
    138   BSP_irq_enable_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
     138  bsp_interrupt_vector_enable(used->idtIndex - BSP_IRQ_VECTOR_BASE);
    139139}
    140140
    141141static int timerIsOn(const rtems_raw_irq_connect_data *used)
    142142{
    143   return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
     143  return bsp_interrupt_vector_enable(used->idtIndex - BSP_IRQ_VECTOR_BASE);
    144144}
    145145
Note: See TracChangeset for help on using the changeset viewer.