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
2f3196d
Documentation
LICENSES
arch
alpha
arc
arm
arm64
c6x
csky
h8300
hexagon
ia64
m68k
68000
amiga
apollo
atari
bvme6000
coldfire
configs
emu
fpsp040
hp300
ifpsp060
include
asm
Kbuild
MC68328.h
MC68EZ328.h
MC68VZ328.h
adb_iop.h
amigahw.h
amigaints.h
amigayle.h
amipcmcia.h
apollohw.h
asm-offsets.h
asm-prototypes.h
atari_joystick.h
atari_stdma.h
atari_stram.h
atarihw.h
atariints.h
atarikb.h
atomic.h
bitops.h
blinken.h
bootinfo.h
bootstd.h
bug.h
bugs.h
bvme6000hw.h
cache.h
cacheflush.h
cacheflush_mm.h
cacheflush_no.h
checksum.h
cmpxchg.h
coldfire.h
contregs.h
current.h
delay.h
div64.h
dma.h
dsp56k.h
dvma.h
elf.h
entry.h
export.h
fb.h
fbio.h
flat.h
floppy.h
fpu.h
ftrace.h
gpio.h
hardirq.h
hash.h
hp300hw.h
hwtest.h
ide.h
idprom.h
intersil.h
io.h
io_mm.h
io_no.h
irq.h
irqflags.h
kexec.h
kmap.h
linkage.h
m5206sim.h
m520xsim.h
m523xsim.h
m525xsim.h
m5272sim.h
m527xsim.h
m528xsim.h
m52xxacr.h
m5307sim.h
m53xxacr.h
m53xxsim.h
m5407sim.h
m5441xsim.h
m54xxacr.h
m54xxgpt.h
m54xxpci.h
m54xxsim.h
mac_asc.h
mac_baboon.h
mac_iop.h
mac_oss.h
mac_psc.h
mac_via.h
machdep.h
machines.h
machw.h
macintosh.h
macints.h
math-emu.h
mc146818rtc.h
mcf8390.h
mcf_pgalloc.h
mcf_pgtable.h
mcfclk.h
mcfdma.h
mcfgpio.h
mcfintc.h
mcfmmu.h
mcfpit.h
mcfqspi.h
mcfsim.h
mcfslt.h
mcftimer.h
mcfuart.h
mcfwdebug.h
mmu.h
mmu_context.h
mmzone.h
module.h
motorola_pgalloc.h
motorola_pgtable.h
movs.h
mvme147hw.h
mvme16xhw.h
natfeat.h
nettel.h
nubus.h
openprom.h
oplib.h
page.h
page_mm.h
page_no.h
page_offset.h
parport.h
pci.h
pgalloc.h
pgtable.h
pgtable_mm.h
pgtable_no.h
processor.h
ptrace.h
q40_master.h
q40ints.h
quicc_simple.h
raw_io.h
segment.h
serial.h
setup.h
signal.h
smp.h
string.h
sun3-head.h
sun3_pgalloc.h
sun3_pgtable.h
sun3ints.h
sun3mmu.h
sun3x.h
sun3xflop.h
sun3xprom.h
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h
uaccess_mm.h
uaccess_no.h
ucontext.h
unaligned.h
unistd.h
user.h
vga.h
virtconvert.h
zorro.h
uapi
kernel
lib
mac
math-emu
mm
mvme147
mvme16x
q40
sun3
sun3x
tools
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile
install.sh
microblaze
mips
nds32
nios2
openrisc
parisc
powerpc
riscv
s390
sh
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
/
m68k
/
include
/
asm
/
flat.h
Blame
Blame
Latest commit
History
History
39 lines (33 loc) · 902 Bytes
Breadcrumbs
linux
/
arch
/
m68k
/
include
/
asm
/
flat.h
Top
File metadata and controls
Code
Blame
39 lines (33 loc) · 902 Bytes
Raw
/* SPDX-License-Identifier: GPL-2.0 */ /* * flat.h -- uClinux flat-format executables */ #ifndef __M68KNOMMU_FLAT_H__ #define __M68KNOMMU_FLAT_H__ #include <linux/uaccess.h> #define flat_argvp_envp_on_stack() 1 #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) { #ifdef CONFIG_CPU_HAS_NO_UNALIGNED return copy_from_user(addr, rp, 4) ? -EFAULT : 0; #else return get_user(*addr, rp); #endif } static inline int flat_put_addr_at_rp(u32 __user *rp, u32 addr, u32 rel) { #ifdef CONFIG_CPU_HAS_NO_UNALIGNED return copy_to_user(rp, &addr, 4) ? -EFAULT : 0; #else return put_user(addr, rp); #endif } #define flat_get_relocate_addr(rel) (rel) #define FLAT_PLAT_INIT(regs) \ do { \ if (current->mm) \ (regs)->d5 = current->mm->start_data; \ } while (0) #endif /* __M68KNOMMU_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
36
37
38
39
You can’t perform that action at this time.