cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

desc.h (473B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __UM_DESC_H
      3#define __UM_DESC_H
      4
      5/* Taken from asm-i386/desc.h, it's the only thing we need. The rest wouldn't
      6 * compile, and has never been used. */
      7#define LDT_empty(info) (\
      8	(info)->base_addr	== 0	&& \
      9	(info)->limit		== 0	&& \
     10	(info)->contents	== 0	&& \
     11	(info)->read_exec_only	== 1	&& \
     12	(info)->seg_32bit	== 0	&& \
     13	(info)->limit_in_pages	== 0	&& \
     14	(info)->seg_not_present	== 1	&& \
     15	(info)->useable		== 0	)
     16
     17#endif