lkml.org 
[lkml]   [2020]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v27 04/22] x86/sgx: Add SGX microarchitectural data structures
On Sun, Feb 23, 2020 at 07:25:41PM +0200, Jarkko Sakkinen wrote:
> Define the SGX microarchitectural data structures used by various SGX
> opcodes. This is not an exhaustive representation of all SGX data
> structures but only those needed by the kernel.
>
> The data structures are described in:
>
> Intel SDM: 37.6 INTEL® SGX DATA STRUCTURES OVERVIEW
>
> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
> ---

...

> +#define SGX_SSA_GPRS_SIZE 182

SSA GPRs size is 184. Per table 37.9 in the SDM:

Field OFFSET (Bytes) Size (Bytes)

GSBASE 176 8

Reported by a third party, I'm just the messenger and not that good at math :-).

\
 
 \ /
  Last update: 2020-03-03 01:40    [W:0.207 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site