@@ -17,8 +17,10 @@
#ifndef __ASSEMBLER__
#define G0 0x00
#define G1 0x01
+#define G2 0x02
#define G3 0x03
#define G6 0x06
+#define G7 0x07
#define O0 0x08
#define O1 0x09
#define O2 0x0a
@@ -195,10 +195,12 @@ static const int bpf2sparc[] = {
/* read-only frame pointer to access stack */
[BPF_REG_FP] = FP,
+ [BPF_REG_AX] = G7,
+
/* temporary register for internal BPF JIT */
[TMP_REG_1] = G1,
- [TMP_REG_2] = G3,
- [TMP_REG_3] = L6,
+ [TMP_REG_2] = G2,
+ [TMP_REG_3] = G3,
[SKB_HLEN_REG] = L4,
[SKB_DATA_REG] = L5,
@@ -31,7 +31,8 @@ config SPARC
select ARCH_WANT_IPC_PARSE_VERSION
select GENERIC_PCI_IOMAP
select HAVE_NMI_WATCHDOG if SPARC64
- select HAVE_CBPF_JIT
+ select HAVE_CBPF_JIT if SPARC32
+ select HAVE_EBPF_JIT if SPARC64
select HAVE_DEBUG_BUGVERBOSE
select GENERIC_SMP_IDLE_THREAD
select GENERIC_CLOCKEVENTS