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

ioremap.c (591B)


      1// SPDX-License-Identifier: GPL-2.0
      2/*
      3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
      4 */
      5
      6#include <asm/io.h>
      7
      8void __init __iomem *early_ioremap(u64 phys_addr, unsigned long size)
      9{
     10	return ((void __iomem *)TO_CACHE(phys_addr));
     11}
     12
     13void __init early_iounmap(void __iomem *addr, unsigned long size)
     14{
     15
     16}
     17
     18void *early_memremap_ro(resource_size_t phys_addr, unsigned long size)
     19{
     20	return early_memremap(phys_addr, size);
     21}
     22
     23void *early_memremap_prot(resource_size_t phys_addr, unsigned long size,
     24		    unsigned long prot_val)
     25{
     26	return early_memremap(phys_addr, size);
     27}