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
248b74c
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
ptrace.h
ptrace_32.h
ptrace_64.h
ptrace_user.h
ptrace_user_32.h
ptrace_user_64.h
sigcontext.h
sigcontext_32.h
sigcontext_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
/
sigcontext_64.h
Copy path
Blame
Blame
Latest commit
History
History
32 lines (26 loc) · 727 Bytes
Breadcrumbs
linux
/
arch
/
um
/
sys-x86
/
shared
/
sysdep
/
sigcontext_64.h
Top
File metadata and controls
Code
Blame
32 lines (26 loc) · 727 Bytes
Raw
/* * Copyright 2003 PathScale, Inc. * * Licensed under the GPL */ #ifndef __SYSDEP_X86_64_SIGCONTEXT_H #define __SYSDEP_X86_64_SIGCONTEXT_H #include <generated/user_constants.h> #define SC_OFFSET(sc, field) \ *((unsigned long *) &(((char *) (sc))[HOST_##field])) #define SC_CR2(sc) SC_OFFSET(sc, SC_CR2) #define SC_ERR(sc) SC_OFFSET(sc, SC_ERR) #define SC_TRAPNO(sc) SC_OFFSET(sc, SC_TRAPNO) #define GET_FAULTINFO_FROM_SC(fi, sc) \ { \ (fi).cr2 = SC_CR2(sc); \ (fi).error_code = SC_ERR(sc); \ (fi).trap_no = SC_TRAPNO(sc); \ } #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
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
You can’t perform that action at this time.