| version 1.2, 2005/03/12 12:32:54 | version 1.4, 2011/01/15 17:17:23 | 
| Line 1 | Line 1 | 
 | /*      $Id$    */ |  | 
 |  |  | 
 | /* | /* | 
 | * Copyright (c) 2003 NONAKA Kimihiro | * Copyright (c) 2003 NONAKA Kimihiro | 
 | * All rights reserved. | * All rights reserved. | 
| Line 56  enum { | Line 54  enum { | 
 | EXCEPTION_NUM | EXCEPTION_NUM | 
 | }; | }; | 
 |  |  | 
 |  | enum { | 
 |  | INTR_TYPE_SOFTINTR = -1,        /* software interrupt (INTn) */ | 
 |  | INTR_TYPE_EXTINTR = 0,          /* external interrupt */ | 
 |  | INTR_TYPE_EXCEPTION = 1,        /* exception */ | 
 |  | }; | 
 |  |  | 
 | #define EXCEPTION(num, vec) \ | #define EXCEPTION(num, vec) \ | 
 | exception(num, vec); | exception(num, vec); | 
| #define INTERRUPT(num, softintp, errorp, error_code) \ | #define INTERRUPT(num, softintp) \ | 
| interrupt(num, softintp, errorp, error_code) | interrupt(num, softintp, 0, 0) | 
 |  |  | 
 | void exception(int num, int vec); | void exception(int num, int vec); | 
| void interrupt(int num, int softintp, int errorp, int error_code); | void interrupt(int num, int intrtype, int errorp, int error_code); | 
 |  |  | 
 | #ifdef __cplusplus | #ifdef __cplusplus | 
 | } | } |