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
ab1c0cc
Documentation
arch
alpha
arm
avr32
blackfin
cris
frv
h8300
ia64
m32r
m68k
microblaze
mips
mn10300
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
um
drivers
include
kernel
os-Linux
scripts
sys-ia64
sys-ppc
sys-x86
asm
shared/sysdep
archsetjmp.h
archsetjmp_32.h
archsetjmp_64.h
barrier.h
barrier_32.h
barrier_64.h
faultinfo.h
faultinfo_32.h
faultinfo_64.h
host_ldt.h
host_ldt_32.h
host_ldt_64.h
kernel-offsets.h
kernel-offsets_32.h
kernel-offsets_64.h
mcontext.h
ptrace.h
ptrace_32.h
ptrace_64.h
ptrace_user.h
ptrace_user_32.h
ptrace_user_64.h
skas_ptrace.h
skas_ptrace_32.h
skas_ptrace_64.h
stub.h
stub_32.h
stub_64.h
syscalls.h
syscalls_32.h
syscalls_64.h
tls.h
tls_32.h
tls_64.h
vdso
Makefile
bug.c
bugs_32.c
bugs_64.c
checksum_32.S
delay_32.c
delay_64.c
elfcore.c
fault.c
ksyms.c
ldt.c
mem_32.c
mem_64.c
ptrace_32.c
ptrace_64.c
ptrace_user.c
setjmp_32.S
setjmp_64.S
signal_32.c
signal_64.c
stub_32.S
stub_64.S
stub_segv.c
sys_call_table_32.S
sys_call_table_64.c
syscalls_32.c
syscalls_64.c
sysrq_32.c
sysrq_64.c
tls_32.c
tls_64.c
user-offsets.c
.gitignore
Kconfig.char
Kconfig.common
Kconfig.debug
Kconfig.net
Kconfig.rest
Kconfig.um
Kconfig.x86
Makefile
Makefile-i386
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-x86_64
defconfig
unicore32
x86
xtensa
.gitignore
Kconfig
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
arch
/
um
/
sys-x86
/
shared
/
sysdep
/
mcontext.h
Blame
Blame
Latest commit
History
History
31 lines (23 loc) · 614 Bytes
Breadcrumbs
linux
/
arch
/
um
/
sys-x86
/
shared
/
sysdep
/
mcontext.h
Top
File metadata and controls
Code
Blame
31 lines (23 loc) · 614 Bytes
Raw
/* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ #ifndef __SYS_SIGCONTEXT_X86_H #define __SYS_SIGCONTEXT_X86_H extern void get_regs_from_mc(struct uml_pt_regs *, mcontext_t *); #ifdef __i386__ #define GET_FAULTINFO_FROM_MC(fi, mc) \ { \ (fi).cr2 = (mc)->cr2; \ (fi).error_code = (mc)->gregs[REG_ERR]; \ (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ } #else #define GET_FAULTINFO_FROM_MC(fi, mc) \ { \ (fi).cr2 = (mc)->gregs[REG_CR2]; \ (fi).error_code = (mc)->gregs[REG_ERR]; \ (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ } #endif #endif
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
You can’t perform that action at this time.