File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ LDFLAGS_vmlinux += -G0
10
10
# Do not use single-byte enums; these will overflow.
11
11
KBUILD_CFLAGS += -fno-short-enums
12
12
13
+ # We must use long-calls:
14
+ KBUILD_CFLAGS += -mlong-calls
15
+
13
16
# Modules must use either long-calls, or use pic/plt.
14
17
# Use long-calls for now, it's easier. And faster.
15
18
# KBUILD_CFLAGS_MODULE += -fPIC
Original file line number Diff line number Diff line change 8
8
9
9
#include <asm-generic/timex.h>
10
10
#include <asm/timer-regs.h>
11
+ #include <asm/hexagon_vm.h>
11
12
12
13
/* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */
13
14
#define CLOCK_TICK_RATE TCX0_CLK_RATE
16
17
17
18
static inline int read_current_timer (unsigned long * timer_val )
18
19
{
19
- * timer_val = ( unsigned long ) __vmgettime ();
20
+ * timer_val = __vmgettime ();
20
21
return 0 ;
21
22
}
22
23
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void user_disable_single_step(struct task_struct *child)
35
35
36
36
static int genregs_get (struct task_struct * target ,
37
37
const struct user_regset * regset ,
38
- srtuct membuf to )
38
+ struct membuf to )
39
39
{
40
40
struct pt_regs * regs = task_pt_regs (target );
41
41
@@ -54,7 +54,7 @@ static int genregs_get(struct task_struct *target,
54
54
membuf_store (& to , regs -> m0 );
55
55
membuf_store (& to , regs -> m1 );
56
56
membuf_store (& to , regs -> usr );
57
- membuf_store (& to , regs -> p3_0 );
57
+ membuf_store (& to , regs -> preds );
58
58
membuf_store (& to , regs -> gp );
59
59
membuf_store (& to , regs -> ugp );
60
60
membuf_store (& to , pt_elr (regs )); // pc
You can’t perform that action at this time.
0 commit comments