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

initrd.h (1008B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2
      3#ifndef __LINUX_INITRD_H
      4#define __LINUX_INITRD_H
      5
      6#define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
      7
      8/* starting block # of image */
      9extern int rd_image_start;
     10
     11/* size of a single RAM disk */
     12extern unsigned long rd_size;
     13
     14/* 1 if it is not an error if initrd_start < memory_start */
     15extern int initrd_below_start_ok;
     16
     17/* free_initrd_mem always gets called with the next two as arguments.. */
     18extern unsigned long initrd_start, initrd_end;
     19extern void free_initrd_mem(unsigned long, unsigned long);
     20
     21#ifdef CONFIG_BLK_DEV_INITRD
     22extern void __init reserve_initrd_mem(void);
     23extern void wait_for_initramfs(void);
     24#else
     25static inline void __init reserve_initrd_mem(void) {}
     26static inline void wait_for_initramfs(void) {}
     27#endif
     28
     29extern phys_addr_t phys_initrd_start;
     30extern unsigned long phys_initrd_size;
     31
     32extern char __initramfs_start[];
     33extern unsigned long __initramfs_size;
     34
     35void console_on_rootfs(void);
     36
     37#endif /* __LINUX_INITRD_H */