~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/h8300/include/asm/traps.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  linux/include/asm-h8300/traps.h
 
3
 *
 
4
 *  Copyright (C) 2003 Yoshinori Sato <ysato@users.sourceforge.jp>
 
5
 *
 
6
 * This file is subject to the terms and conditions of the GNU General Public
 
7
 * License.  See the file COPYING in the main directory of this archive
 
8
 * for more details.
 
9
 */
 
10
 
 
11
#ifndef _H8300_TRAPS_H
 
12
#define _H8300_TRAPS_H
 
13
 
 
14
extern void system_call(void);
 
15
extern void interrupt_entry(void);
 
16
extern void trace_break(void);
 
17
 
 
18
#define JMP_OP 0x5a000000
 
19
#define JSR_OP 0x5e000000
 
20
#define VECTOR(address) ((JMP_OP)|((unsigned long)address))
 
21
#define REDIRECT(address) ((JSR_OP)|((unsigned long)address))
 
22
 
 
23
#define TRACE_VEC 5
 
24
 
 
25
#define TRAP0_VEC 8
 
26
#define TRAP1_VEC 9
 
27
#define TRAP2_VEC 10
 
28
#define TRAP3_VEC 11
 
29
 
 
30
#if defined(__H8300H__)
 
31
#define NR_TRAPS 12
 
32
#endif
 
33
#if defined(__H8300S__)
 
34
#define NR_TRAPS 16
 
35
#endif
 
36
 
 
37
#endif /* _H8300_TRAPS_H */