/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
microblaze
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-190/arch/microblaze/include/asm
mkdir
upload
Name
Size
Mode
Actions
asm-compat.h
518
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
barrier.h
313
0644
edit
dl
rm
cache.h
510
0644
edit
dl
rm
cacheflush.h
3209
0644
edit
dl
rm
checksum.h
806
0644
edit
dl
rm
cpuinfo.h
2043
0644
edit
dl
rm
current.h
714
0644
edit
dl
rm
delay.h
2138
0644
edit
dl
rm
dma.h
432
0644
edit
dl
rm
elf.h
602
0644
edit
dl
rm
entry.h
1018
0644
edit
dl
rm
exceptions.h
1928
0644
edit
dl
rm
fixmap.h
1874
0644
edit
dl
rm
flat.h
1982
0644
edit
dl
rm
ftrace.h
642
0644
edit
dl
rm
futex.h
2179
0644
edit
dl
rm
hash.h
2429
0644
edit
dl
rm
highmem.h
1800
0644
edit
dl
rm
io.h
1691
0644
edit
dl
rm
irq.h
376
0644
edit
dl
rm
irqflags.h
2529
0644
edit
dl
rm
Kbuild
250
0644
edit
dl
rm
kgdb.h
739
0644
edit
dl
rm
mmu.h
4050
0644
edit
dl
rm
mmu_context.h
72
0644
edit
dl
rm
mmu_context_mm.h
3893
0644
edit
dl
rm
module.h
704
0644
edit
dl
rm
page.h
4076
0644
edit
dl
rm
pci-bridge.h
4473
0644
edit
dl
rm
pci.h
1986
0644
edit
dl
rm
pgalloc.h
1042
0644
edit
dl
rm
pgtable.h
14526
0644
edit
dl
rm
processor.h
2693
0644
edit
dl
rm
ptrace.h
591
0644
edit
dl
rm
pvr.h
8791
0644
edit
dl
rm
registers.h
1508
0644
edit
dl
rm
seccomp.h
256
0644
edit
dl
rm
sections.h
501
0644
edit
dl
rm
setup.h
823
0644
edit
dl
rm
string.h
494
0644
edit
dl
rm
switch_to.h
493
0644
edit
dl
rm
syscall.h
2346
0644
edit
dl
rm
thread_info.h
3979
0644
edit
dl
rm
timex.h
266
0644
edit
dl
rm
tlbflush.h
1579
0644
edit
dl
rm
uaccess.h
8121
0644
edit
dl
rm
unistd.h
1051
0644
edit
dl
rm
unwind.h
611
0644
edit
dl
rm
vmalloc.h
108
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/microblaze/include/asm/flat.h
(1982B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * uClinux flat-format executables * * Copyright (C) 2005 John Williams <jwilliams@itee.uq.edu.au> */ #ifndef _ASM_MICROBLAZE_FLAT_H #define _ASM_MICROBLAZE_FLAT_H #include <asm/unaligned.h> /* * Microblaze works a little differently from other arches, because * of the MICROBLAZE_64 reloc type. Here, a 32 bit address is split * over two instructions, an 'imm' instruction which provides the top * 16 bits, then the instruction "proper" which provides the low 16 * bits. */ /* * Crack open a symbol reference and extract the address to be * relocated. rp is a potentially unaligned pointer to the * reference */ static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags, u32 *addr) { u32 *p = (__force u32 *)rp; /* Is it a split 64/32 reference? */ if (relval & 0x80000000) { /* Grab the two halves of the reference */ u32 val_hi, val_lo; val_hi = get_unaligned(p); val_lo = get_unaligned(p+1); /* Crack the address out */ *addr = ((val_hi & 0xffff) << 16) + (val_lo & 0xffff); } else { /* Get the address straight out */ *addr = get_unaligned(p); } return 0; } /* * Insert an address into the symbol reference at rp. rp is potentially * unaligned. */ static inline int flat_put_addr_at_rp(u32 __user *rp, u32 addr, u32 relval) { u32 *p = (__force u32 *)rp; /* Is this a split 64/32 reloc? */ if (relval & 0x80000000) { /* Get the two "halves" */ unsigned long val_hi = get_unaligned(p); unsigned long val_lo = get_unaligned(p + 1); /* insert the address */ val_hi = (val_hi & 0xffff0000) | addr >> 16; val_lo = (val_lo & 0xffff0000) | (addr & 0xffff); /* store the two halves back into memory */ put_unaligned(val_hi, p); put_unaligned(val_lo, p+1); } else { /* Put it straight in, no messing around */ put_unaligned(addr, p); } return 0; } #define flat_get_relocate_addr(rel) (rel & 0x7fffffff) #endif /* _ASM_MICROBLAZE_FLAT_H */
Save
cmd:
run