Rev 1855 | Rev 1861 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1855 | Rev 1860 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #ifndef __sparc64_TRAP_TABLE_H__ |
35 | #ifndef KERN_sparc64_TRAP_TABLE_H_ |
| 36 | #define __sparc64_TRAP_TABLE_H__ |
36 | #define KERN_sparc64_TRAP_TABLE_H_ |
| 37 | - | ||
| 38 | #ifndef __ASM__ |
- | |
| 39 | #include <arch/types.h> |
- | |
| 40 | #endif /* __ASM__ */ |
- | |
| 41 | 37 | ||
| 42 | #include <arch/stack.h> |
38 | #include <arch/stack.h> |
| 43 | 39 | ||
| 44 | #define TRAP_TABLE_ENTRY_COUNT 1024 |
40 | #define TRAP_TABLE_ENTRY_COUNT 1024 |
| 45 | #define TRAP_TABLE_ENTRY_SIZE 32 |
41 | #define TRAP_TABLE_ENTRY_SIZE 32 |
| 46 | #define TRAP_TABLE_SIZE (TRAP_TABLE_ENTRY_COUNT*TRAP_TABLE_ENTRY_SIZE) |
42 | #define TRAP_TABLE_SIZE (TRAP_TABLE_ENTRY_COUNT*TRAP_TABLE_ENTRY_SIZE) |
| 47 | 43 | ||
| 48 | #ifndef __ASM__ |
44 | #ifndef __ASM__ |
| - | 45 | ||
| - | 46 | #include <arch/types.h> |
|
| - | 47 | ||
| 49 | struct trap_table_entry { |
48 | struct trap_table_entry { |
| 50 | uint8_t octets[TRAP_TABLE_ENTRY_SIZE]; |
49 | uint8_t octets[TRAP_TABLE_ENTRY_SIZE]; |
| 51 | } __attribute__ ((packed)); |
50 | } __attribute__ ((packed)); |
| 52 | 51 | ||
| 53 | typedef struct trap_table_entry trap_table_entry_t; |
52 | typedef struct trap_table_entry trap_table_entry_t; |