]>
Commit | Line | Data |
---|---|---|
c94e3060 JB |
1 | --- crash-7.1.3/unwind_x86_64.h.orig 2015-09-02 21:38:32.000000000 +0200 |
2 | +++ crash-7.1.3/unwind_x86_64.h 2015-10-24 14:57:49.632888183 +0200 | |
3 | @@ -10,10 +10,14 @@ | |
4 | * GNU General Public License for more details. | |
5 | */ | |
6 | ||
7 | +#ifdef __LP64__ | |
8 | #define CONFIG_64BIT 1 | |
9 | +typedef unsigned long size_t; | |
10 | +#else | |
11 | +typedef unsigned int size_t; | |
12 | +#endif | |
13 | #define NULL ((void *)0) | |
14 | ||
15 | -typedef unsigned long size_t; | |
16 | typedef unsigned char u8; | |
17 | typedef signed short s16; | |
18 | typedef unsigned short u16; | |
19 | @@ -22,30 +26,30 @@ | |
20 | typedef unsigned long long u64; | |
21 | ||
22 | struct pt_regs { | |
23 | - unsigned long r15; | |
24 | - unsigned long r14; | |
25 | - unsigned long r13; | |
26 | - unsigned long r12; | |
27 | - unsigned long rbp; | |
28 | - unsigned long rbx; | |
29 | + u64 r15; | |
30 | + u64 r14; | |
31 | + u64 r13; | |
32 | + u64 r12; | |
33 | + u64 rbp; | |
34 | + u64 rbx; | |
35 | /* arguments: non interrupts/non tracing syscalls only save upto here*/ | |
36 | - unsigned long r11; | |
37 | - unsigned long r10; | |
38 | - unsigned long r9; | |
39 | - unsigned long r8; | |
40 | - unsigned long rax; | |
41 | - unsigned long rcx; | |
42 | - unsigned long rdx; | |
43 | - unsigned long rsi; | |
44 | - unsigned long rdi; | |
45 | - unsigned long orig_rax; | |
46 | + u64 r11; | |
47 | + u64 r10; | |
48 | + u64 r9; | |
49 | + u64 r8; | |
50 | + u64 rax; | |
51 | + u64 rcx; | |
52 | + u64 rdx; | |
53 | + u64 rsi; | |
54 | + u64 rdi; | |
55 | + u64 orig_rax; | |
56 | /* end of arguments */ | |
57 | /* cpu exception frame or undefined */ | |
58 | - unsigned long rip; | |
59 | - unsigned long cs; | |
60 | - unsigned long eflags; | |
61 | - unsigned long rsp; | |
62 | - unsigned long ss; | |
63 | + u64 rip; | |
64 | + u64 cs; | |
65 | + u64 eflags; | |
66 | + u64 rsp; | |
67 | + u64 ss; | |
68 | /* top of stack page */ | |
69 | }; | |
70 |