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:
Adrian-Ken Rueegsegger 2015-02-17 10:19:11 +01:00 committed by Christian Helmuth
parent 4417fe6201
commit 65de09c7a6
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,9 @@
.include "macros.s"
/* size of pointer to CPU context */
.set CONTEXT_PTR_SIZE, 1 * 8
.section .text
/*
@ -44,6 +47,7 @@
.p2align 2
.global _mt_client_context_ptr
_mt_client_context_ptr:
.space CONTEXT_PTR_SIZE
/* a globally mapped buffer per CPU */
.p2align 2