summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2019-01-02 14:51:30 +0530
committerAtish Patra <[email protected]>2019-01-02 18:06:14 -0800
commit5797ae203555254c36fd21bc5aaa76a92ac4bd6c (patch)
tree8527fb0f78c81b2bd3716e92b335b50ae6871498 /include
parentdc7be34d523f93d2834f4aff49d640cdec16a509 (diff)
include: Remove redundant tmp0 from struct sbi_scratch
The tmp0 member was added in struct sbi_scratch to assist register save/restore at time of trap handling. This tmp0 is not unsed any more hence removing it. Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_scratch.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
index 14c72a85..25b00c32 100644
--- a/include/sbi/sbi_scratch.h
+++ b/include/sbi/sbi_scratch.h
@@ -12,16 +12,15 @@
#include <sbi/riscv_asm.h>
-#define SBI_SCRATCH_TMP0_OFFSET (0 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_FW_START_OFFSET (1 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_FW_SIZE_OFFSET (2 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_NEXT_ARG1_OFFSET (3 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_NEXT_ADDR_OFFSET (4 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_NEXT_MODE_OFFSET (5 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_WARMBOOT_ADDR_OFFSET (6 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_PLATFORM_ADDR_OFFSET (7 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_HARTID_TO_SCRATCH_OFFSET (8 * __SIZEOF_POINTER__)
-#define SBI_SCRATCH_IPI_TYPE_OFFSET (9 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_FW_START_OFFSET (0 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_FW_SIZE_OFFSET (1 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_NEXT_ARG1_OFFSET (2 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_NEXT_ADDR_OFFSET (3 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_NEXT_MODE_OFFSET (4 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_WARMBOOT_ADDR_OFFSET (5 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_PLATFORM_ADDR_OFFSET (6 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_HARTID_TO_SCRATCH_OFFSET (7 * __SIZEOF_POINTER__)
+#define SBI_SCRATCH_IPI_TYPE_OFFSET (8 * __SIZEOF_POINTER__)
#define SBI_SCRATCH_SIZE 256
#ifndef __ASSEMBLY__
@@ -29,7 +28,6 @@
#include <sbi/sbi_types.h>
struct sbi_scratch {
- unsigned long tmp0;
unsigned long fw_start;
unsigned long fw_size;
unsigned long next_arg1;