Subversion Repositories HelenOS

Rev

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

Rev 1792 Rev 1823
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef __sparc64_TRAP_H__
35
#ifndef __sparc64_TRAP_H__
36
#define __sparc64_TRAP_H__
36
#define __sparc64_TRAP_H__
37
 
37
 
38
#include <arch/trap/trap_table.h>
-
 
39
#include <arch/asm.h>
-
 
40
 
-
 
41
/** Switch to in-kernel trap table. */
-
 
42
static inline void trap_switch_trap_table(void)
-
 
43
{
-
 
44
    /* Point TBA to kernel trap table. */
-
 
45
    tba_write((uint64_t) trap_table);
-
 
46
}
-
 
47
 
-
 
48
extern void trap_init(void);
38
extern void trap_init(void);
49
 
39
 
50
#endif
40
#endif
51
 
41
 
52
/** @}
42
/** @}