Subversion Repositories HelenOS-historic

Rev

Rev 619 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 619 Rev 627
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __sparc64_TRAP_H__
29
#ifndef __sparc64_TRAP_H__
30
#define __sparc64_TRAP_H__
30
#define __sparc64_TRAP_H__
31
 
31
 
-
 
32
#include <arch/trap_table.h>
-
 
33
#include <arch/asm.h>
-
 
34
 
-
 
35
/** Switch to in-kernel trap table. */
-
 
36
static inline void trap_switch_trap_table(void)
-
 
37
{
-
 
38
    /* Point TBA to kernel copy of OFW's trap table. */
-
 
39
    tba_write((__u64) trap_table);
-
 
40
}
-
 
41
 
32
extern void trap_init(void);
42
extern void trap_init(void);
33
 
43
 
34
#endif
44
#endif