Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
02da283
Documentation
LICENSES
arch
alpha
arc
arm
arm64
c6x
csky
h8300
hexagon
ia64
m68k
microblaze
mips
nds32
nios2
openrisc
parisc
powerpc
riscv
s390
sh
boards
boot
cchips
configs
drivers
include
asm
Kbuild
adc.h
addrspace.h
alignment.h
asm-offsets.h
atomic-grb.h
atomic-irq.h
atomic-llsc.h
atomic.h
barrier.h
bitops-cas.h
bitops-grb.h
bitops-llsc.h
bitops-op32.h
bitops.h
bl_bit.h
bl_bit_32.h
bl_bit_64.h
bug.h
bugs.h
cache.h
cache_insns.h
cache_insns_32.h
cache_insns_64.h
cacheflush.h
checksum.h
checksum_32.h
clock.h
cmpxchg-cas.h
cmpxchg-grb.h
cmpxchg-irq.h
cmpxchg-llsc.h
cmpxchg-xchg.h
cmpxchg.h
device.h
dma-register.h
dma.h
dmabrg.h
dwarf.h
elf.h
entry-macros.S
extable.h
fb.h
fixmap.h
flat.h
fpu.h
freq.h
ftrace.h
futex-cas.h
futex-irq.h
futex-llsc.h
futex.h
gpio.h
hardirq.h
hd64461.h
heartbeat.h
hugetlb.h
hw_breakpoint.h
hw_irq.h
i2c-sh7760.h
io.h
io_generic.h
io_noioport.h
io_trapped.h
irq.h
irqflags.h
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h
linkage.h
machvec.h
mmiowb.h
mmu.h
mmu_context.h
mmu_context_32.h
mmu_context_64.h
mmzone.h
module.h
page.h
pci.h
perf_event.h
pgalloc.h
pgtable-2level.h
pgtable-3level.h
pgtable.h
pgtable_32.h
pgtable_64.h
posix_types.h
processor.h
processor_32.h
processor_64.h
ptrace.h
ptrace_32.h
ptrace_64.h
push-switch.h
reboot.h
romimage-macros.h
rtc.h
seccomp.h
sections.h
segment.h
setup.h
sfp-machine.h
sh7760fb.h
sh_bios.h
shmparam.h
siu.h
smc37c93x.h
smp-ops.h
smp.h
sparsemem.h
spi.h
spinlock-cas.h
spinlock-llsc.h
spinlock.h
spinlock_types.h
sram.h
stackprotector.h
stacktrace.h
string.h
string_32.h
string_64.h
suspend.h
switch_to.h
switch_to_32.h
switch_to_64.h
syscall.h
syscall_32.h
syscall_64.h
syscalls.h
syscalls_32.h
syscalls_64.h
thread_info.h
timex.h
tlb.h
tlb_64.h
tlbflush.h
topology.h
traps.h
traps_32.h
traps_64.h
types.h
uaccess.h
uaccess_32.h
uaccess_64.h
unaligned-sh4a.h
unaligned.h
uncached.h
unistd.h
unwinder.h
user.h
vga.h
vmlinux.lds.h
watchdog.h
word-at-a-time.h
cpu-common
cpu-sh2
cpu-sh2a
cpu-sh3
cpu-sh4
cpu-sh4a
cpu-sh5
mach-common
mach-dreamcast
mach-ecovec24
mach-kfr2r09
mach-landisk
mach-migor
mach-sdk7786
mach-se
mach-sh03
mach-x3proto
uapi
kernel
lib
lib64
math-emu
mm
oprofile
tools
Kconfig
Kconfig.cpu
Kconfig.debug
Makefile
sparc
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
arch
/
sh
/
include
/
asm
/
flat.h
Blame
Blame
Latest commit
History
History
35 lines (31 loc) · 960 Bytes
Breadcrumbs
linux
/
arch
/
sh
/
include
/
asm
/
flat.h
Top
File metadata and controls
Code
Blame
35 lines (31 loc) · 960 Bytes
Raw
/* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/flat.h * * uClinux flat-format executables * * Copyright (C) 2003 Paul Mundt */ #ifndef __ASM_SH_FLAT_H #define __ASM_SH_FLAT_H #include <asm/unaligned.h> #define flat_argvp_envp_on_stack() 0 #define flat_old_ram_flag(flags) (flags) static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags, u32 *addr, u32 *persistent) { *addr = get_unaligned((__force u32 *)rp); return 0; } static inline int flat_put_addr_at_rp(u32 __user *rp, u32 addr, u32 rel) { put_unaligned(addr, (__force u32 *)rp); return 0; } #define FLAT_PLAT_INIT(_r) \ do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \ _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \ _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \ _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; \ _r->sr = SR_FD; } while (0) #endif /* __ASM_SH_FLAT_H */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
You can’t perform that action at this time.