hw_x86_64: Reserve space for mode transition buffer
Since the buffer stores an IA-32e interrupt stack frame, its size must be 6 * 8 bytes.
This commit is contained in:
parent
03929b3cc9
commit
e3f10b5ce2
|
@ -17,6 +17,9 @@
|
||||||
/* size of pointer to CPU context */
|
/* size of pointer to CPU context */
|
||||||
.set CONTEXT_PTR_SIZE, 1 * 8
|
.set CONTEXT_PTR_SIZE, 1 * 8
|
||||||
|
|
||||||
|
/* globally mapped buffer storage */
|
||||||
|
.set BUFFER_SIZE, 6 * 8
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -53,6 +56,7 @@
|
||||||
.p2align 2
|
.p2align 2
|
||||||
.global _mt_buffer
|
.global _mt_buffer
|
||||||
_mt_buffer:
|
_mt_buffer:
|
||||||
|
.space BUFFER_SIZE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On user exceptions the CPU has to jump to one of the following
|
* On user exceptions the CPU has to jump to one of the following
|
||||||
|
|
Loading…
Reference in New Issue