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

ssp.h (480B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 *  ssp.h
      4 *
      5 *  Copyright (C) 2003 Russell King, All Rights Reserved.
      6 */
      7#ifndef SSP_H
      8#define SSP_H
      9
     10struct ssp_state {
     11	unsigned int	cr0;
     12	unsigned int	cr1;
     13};
     14
     15int ssp_write_word(u16 data);
     16int ssp_read_word(u16 *data);
     17int ssp_flush(void);
     18void ssp_enable(void);
     19void ssp_disable(void);
     20void ssp_save_state(struct ssp_state *ssp);
     21void ssp_restore_state(struct ssp_state *ssp);
     22int ssp_init(void);
     23void ssp_exit(void);
     24
     25#endif