Subversion Repositories HelenOS

Rev

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

Rev 2407 Rev 2408
Line 58... Line 58...
58
 
58
 
59
/** Size of memory block occupied by exception vectors. */
59
/** Size of memory block occupied by exception vectors. */
60
#define EXC_VECTORS_SIZE     (EXC_VECTORS * 4)
60
#define EXC_VECTORS_SIZE     (EXC_VECTORS * 4)
61
 
61
 
62
 
62
 
63
/** Kernel stack pointer.
-
 
64
 *
-
 
65
 * It is set when thread switches to user mode,
-
 
66
 * and then used for exception handling.
-
 
67
 */
-
 
68
extern uintptr_t supervisor_sp;
-
 
69
 
-
 
70
/** Temporary exception stack pointer.
-
 
71
 *
-
 
72
 * Temporary stack is used in exceptions handling routines
-
 
73
 * before switching to thread's kernel stack.
-
 
74
 */
-
 
75
extern uintptr_t exc_stack;
-
 
76
 
-
 
77
 
-
 
78
/** Switches to kernel stack and saves all registers there.
63
/** Switches to kernel stack and saves all registers there.
79
 *
64
 *
80
 * Temporary exception stack is used to save a few registers
65
 * Temporary exception stack is used to save a few registers
81
 * before stack switch takes place.
66
 * before stack switch takes place.
82
 */
67
 */