Server IP : 104.21.38.3 / Your IP : 162.158.106.7 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142/arch/arm/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015 Linaro Ltd <[email protected]> */ #ifndef __ASM_ARM_EFI_H #define __ASM_ARM_EFI_H #include <asm/cacheflush.h> #include <asm/cachetype.h> #include <asm/early_ioremap.h> #include <asm/fixmap.h> #include <asm/highmem.h> #include <asm/mach/map.h> #include <asm/mmu_context.h> #include <asm/ptrace.h> #ifdef CONFIG_EFI void efi_init(void); int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md); int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md); #define arch_efi_call_virt_setup() efi_virtmap_load() #define arch_efi_call_virt_teardown() efi_virtmap_unload() #define arch_efi_call_virt(p, f, args...) \ ({ \ efi_##f##_t *__f; \ __f = p->f; \ __f(args); \ }) #define ARCH_EFI_IRQ_FLAGS_MASK \ (PSR_J_BIT | PSR_E_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT | \ PSR_T_BIT | MODE_MASK) static inline void efi_set_pgd(struct mm_struct *mm) { check_and_switch_context(mm, NULL); } void efi_virtmap_load(void); void efi_virtmap_unload(void); #else #define efi_init() #endif /* CONFIG_EFI */ /* arch specific definitions used by the stub code */ struct screen_info *alloc_screen_info(void); void free_screen_info(struct screen_info *si); /* * A reasonable upper bound for the uncompressed kernel size is 32 MBytes, * so we will reserve that amount of memory. We have no easy way to tell what * the actuall size of code + data the uncompressed kernel will use. * If this is insufficient, the decompressor will relocate itself out of the * way before performing the decompression. */ #define MAX_UNCOMP_KERNEL_SIZE SZ_32M /* * phys-to-virt patching requires that the physical to virtual offset is a * multiple of 2 MiB. However, using an alignment smaller than TEXT_OFFSET * here throws off the memory allocation logic, so let's use the lowest power * of two greater than 2 MiB and greater than TEXT_OFFSET. */ #define EFI_PHYS_ALIGN max(UL(SZ_2M), roundup_pow_of_two(TEXT_OFFSET)) /* on ARM, the initrd should be loaded in a lowmem region */ static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr) { return round_down(image_addr, SZ_4M) + SZ_512M; } struct efi_arm_entry_state { u32 cpsr_before_ebs; u32 sctlr_before_ebs; u32 cpsr_after_ebs; u32 sctlr_after_ebs; }; static inline void efi_capsule_flush_cache_range(void *addr, int size) { __cpuc_flush_dcache_area(addr, size); } #endif /* _ASM_ARM_EFI_H */