hw_x86_64: Reserve space for client context pointer
A pointer to the client context is placed in the mt_client_context_ptr area. It is used to pass the current client context to the lowlevel mode-switching assembly code.
This commit is contained in:
parent
4417fe6201
commit
65de09c7a6
|
@ -14,6 +14,9 @@
|
||||||
|
|
||||||
.include "macros.s"
|
.include "macros.s"
|
||||||
|
|
||||||
|
/* size of pointer to CPU context */
|
||||||
|
.set CONTEXT_PTR_SIZE, 1 * 8
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -44,6 +47,7 @@
|
||||||
.p2align 2
|
.p2align 2
|
||||||
.global _mt_client_context_ptr
|
.global _mt_client_context_ptr
|
||||||
_mt_client_context_ptr:
|
_mt_client_context_ptr:
|
||||||
|
.space CONTEXT_PTR_SIZE
|
||||||
|
|
||||||
/* a globally mapped buffer per CPU */
|
/* a globally mapped buffer per CPU */
|
||||||
.p2align 2
|
.p2align 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user