OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [NEC_V850ES_IAR/] [serial/] [serialISR.s85] - Blame information for rev 584

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 584 jeremybenn
                RSEG ICODE:CODE
2
 
3
                EXTERN vUARTRxISRHandler
4
                EXTERN vUARTTxISRHandler
5
 
6
                PUBLIC vUARTRxISRWrapper
7
                PUBLIC vUARTTxISRWrapper
8
 
9
; Wrappers for the serial port interrupt service routines.  These can cause a
10
; context switch so requires an assembly wrapper.
11
 
12
; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
13
#include "ISR_Support.h"
14
 
15
vUARTRxISRWrapper:
16
 
17
        portSAVE_CONTEXT                                ; Save the context of the current task.
18
 
19
        jarl    vUARTRxISRHandler, lp   ; Call the ISR routine.
20
 
21
        portRESTORE_CONTEXT                             ; Restore the context of the current task -
22
                                                                        ; which may be different to the task that
23
                                                                        ; was interrupted.
24
 
25
vUARTTxISRWrapper:
26
 
27
        portSAVE_CONTEXT                                ; Save the context of the current task.
28
 
29
        jarl    vUARTTxISRHandler, lp   ; Call the ISR routine.
30
 
31
        portRESTORE_CONTEXT                             ; Restore the context of the current task -
32
                                                                        ; which may be different to the task that
33
                                                                        ; was interrupted.
34
 
35
 
36
      COMMON INTVEC:CODE:ROOT(2)
37
      ORG 2c0H
38
`??vUARTRxISRWrapper??INTVEC 2c0`:
39
        JR vUARTRxISRWrapper
40
 
41
      COMMON INTVEC:CODE:ROOT(2)
42
      ORG 2d0H
43
`??vUARTTxISRWrapper??INTVEC 2d0`:
44
        JR vUARTTxISRWrapper
45
 
46
        END
47
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.