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

sh_ksyms_32.c (3426B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <linux/module.h>
      3#include <linux/string.h>
      4#include <linux/uaccess.h>
      5#include <linux/delay.h>
      6#include <linux/mm.h>
      7#include <asm/checksum.h>
      8#include <asm/sections.h>
      9
     10EXPORT_SYMBOL(memchr);
     11EXPORT_SYMBOL(memcpy);
     12EXPORT_SYMBOL(memset);
     13EXPORT_SYMBOL(memmove);
     14EXPORT_SYMBOL(__copy_user);
     15EXPORT_SYMBOL(__udelay);
     16EXPORT_SYMBOL(__ndelay);
     17EXPORT_SYMBOL(__const_udelay);
     18EXPORT_SYMBOL(strlen);
     19EXPORT_SYMBOL(csum_partial);
     20EXPORT_SYMBOL(csum_partial_copy_generic);
     21EXPORT_SYMBOL(copy_page);
     22EXPORT_SYMBOL(__clear_user);
     23EXPORT_SYMBOL(empty_zero_page);
     24#ifdef CONFIG_FLATMEM
     25/* need in pfn_valid macro */
     26EXPORT_SYMBOL(min_low_pfn);
     27EXPORT_SYMBOL(max_low_pfn);
     28#endif
     29
     30#define DECLARE_EXPORT(name)		\
     31	extern void name(void);EXPORT_SYMBOL(name)
     32
     33DECLARE_EXPORT(__udivsi3);
     34DECLARE_EXPORT(__sdivsi3);
     35DECLARE_EXPORT(__lshrsi3);
     36DECLARE_EXPORT(__ashrsi3);
     37DECLARE_EXPORT(__ashlsi3);
     38DECLARE_EXPORT(__lshrsi3_r0);
     39DECLARE_EXPORT(__ashrsi3_r0);
     40DECLARE_EXPORT(__ashlsi3_r0);
     41
     42DECLARE_EXPORT(__ashiftrt_r4_0);
     43DECLARE_EXPORT(__ashiftrt_r4_1);
     44DECLARE_EXPORT(__ashiftrt_r4_2);
     45DECLARE_EXPORT(__ashiftrt_r4_3);
     46DECLARE_EXPORT(__ashiftrt_r4_4);
     47DECLARE_EXPORT(__ashiftrt_r4_5);
     48DECLARE_EXPORT(__ashiftrt_r4_6);
     49DECLARE_EXPORT(__ashiftrt_r4_7);
     50DECLARE_EXPORT(__ashiftrt_r4_8);
     51DECLARE_EXPORT(__ashiftrt_r4_9);
     52DECLARE_EXPORT(__ashiftrt_r4_10);
     53DECLARE_EXPORT(__ashiftrt_r4_11);
     54DECLARE_EXPORT(__ashiftrt_r4_12);
     55DECLARE_EXPORT(__ashiftrt_r4_13);
     56DECLARE_EXPORT(__ashiftrt_r4_14);
     57DECLARE_EXPORT(__ashiftrt_r4_15);
     58DECLARE_EXPORT(__ashiftrt_r4_16);
     59DECLARE_EXPORT(__ashiftrt_r4_17);
     60DECLARE_EXPORT(__ashiftrt_r4_18);
     61DECLARE_EXPORT(__ashiftrt_r4_19);
     62DECLARE_EXPORT(__ashiftrt_r4_20);
     63DECLARE_EXPORT(__ashiftrt_r4_21);
     64DECLARE_EXPORT(__ashiftrt_r4_22);
     65DECLARE_EXPORT(__ashiftrt_r4_23);
     66DECLARE_EXPORT(__ashiftrt_r4_24);
     67DECLARE_EXPORT(__ashiftrt_r4_25);
     68DECLARE_EXPORT(__ashiftrt_r4_26);
     69DECLARE_EXPORT(__ashiftrt_r4_27);
     70DECLARE_EXPORT(__ashiftrt_r4_28);
     71DECLARE_EXPORT(__ashiftrt_r4_29);
     72DECLARE_EXPORT(__ashiftrt_r4_30);
     73DECLARE_EXPORT(__ashiftrt_r4_31);
     74DECLARE_EXPORT(__ashiftrt_r4_32);
     75DECLARE_EXPORT(__movstr);
     76DECLARE_EXPORT(__movstrSI8);
     77DECLARE_EXPORT(__movstrSI12);
     78DECLARE_EXPORT(__movstrSI16);
     79DECLARE_EXPORT(__movstrSI20);
     80DECLARE_EXPORT(__movstrSI24);
     81DECLARE_EXPORT(__movstrSI28);
     82DECLARE_EXPORT(__movstrSI32);
     83DECLARE_EXPORT(__movstrSI36);
     84DECLARE_EXPORT(__movstrSI40);
     85DECLARE_EXPORT(__movstrSI44);
     86DECLARE_EXPORT(__movstrSI48);
     87DECLARE_EXPORT(__movstrSI52);
     88DECLARE_EXPORT(__movstrSI56);
     89DECLARE_EXPORT(__movstrSI60);
     90DECLARE_EXPORT(__movstr_i4_even);
     91DECLARE_EXPORT(__movstr_i4_odd);
     92DECLARE_EXPORT(__movstrSI12_i4);
     93DECLARE_EXPORT(__movmem);
     94DECLARE_EXPORT(__movmemSI8);
     95DECLARE_EXPORT(__movmemSI12);
     96DECLARE_EXPORT(__movmemSI16);
     97DECLARE_EXPORT(__movmemSI20);
     98DECLARE_EXPORT(__movmemSI24);
     99DECLARE_EXPORT(__movmemSI28);
    100DECLARE_EXPORT(__movmemSI32);
    101DECLARE_EXPORT(__movmemSI36);
    102DECLARE_EXPORT(__movmemSI40);
    103DECLARE_EXPORT(__movmemSI44);
    104DECLARE_EXPORT(__movmemSI48);
    105DECLARE_EXPORT(__movmemSI52);
    106DECLARE_EXPORT(__movmemSI56);
    107DECLARE_EXPORT(__movmemSI60);
    108DECLARE_EXPORT(__movmem_i4_even);
    109DECLARE_EXPORT(__movmem_i4_odd);
    110DECLARE_EXPORT(__movmemSI12_i4);
    111DECLARE_EXPORT(__udiv_qrnnd_16);
    112DECLARE_EXPORT(__sdivsi3_i4);
    113DECLARE_EXPORT(__udivsi3_i4);
    114DECLARE_EXPORT(__sdivsi3_i4i);
    115DECLARE_EXPORT(__udivsi3_i4i);
    116#ifdef CONFIG_MCOUNT
    117DECLARE_EXPORT(mcount);
    118#endif