summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_scratch.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-01-02 12:21:30 +0300
committerAtish Patra <atishp04@gmail.com>2019-01-03 05:06:14 +0300
commit5797ae203555254c36fd21bc5aaa76a92ac4bd6c (patch)
tree8527fb0f78c81b2bd3716e92b335b50ae6871498 /include/sbi/sbi_scratch.h
parentdc7be34d523f93d2834f4aff49d640cdec16a509 (diff)
downloadopensbi-5797ae203555254c36fd21bc5aaa76a92ac4bd6c.tar.xz
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 <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_scratch.h')
-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 14c72a8..25b00c3 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;