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

mffs.c (320B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <linux/types.h>
      3#include <linux/errno.h>
      4#include <linux/uaccess.h>
      5
      6#include <asm/sfp-machine.h>
      7#include <math-emu/soft-fp.h>
      8
      9int
     10mffs(u32 *frD)
     11{
     12	frD[1] = __FPU_FPSCR;
     13
     14#ifdef DEBUG
     15	printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]);
     16#endif
     17
     18	return 0;
     19}