Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/riscv/include Note if a register is Caller / Callee...



details:   https://anonhg.NetBSD.org/src/rev/db13ed53649e
branches:  trunk
changeset: 956747:db13ed53649e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 07 10:43:47 2020 +0000

description:
Note if a register is Caller / Callee saved

diffstat:

 sys/arch/riscv/include/reg.h |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 45e449b8bef7 -r db13ed53649e sys/arch/riscv/include/reg.h
--- a/sys/arch/riscv/include/reg.h      Sat Nov 07 10:25:28 2020 +0000
+++ b/sys/arch/riscv/include/reg.h      Sat Nov 07 10:43:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: reg.h,v 1.5 2020/11/04 07:41:34 skrll Exp $ */
+/* $NetBSD: reg.h,v 1.6 2020/11/07 10:43:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,17 +33,17 @@
 #define _RISCV_REG_H_
 
 // x0          = 0
-// x1          = ra            (return address)
-// x2          = sp            (stack pointer)
+// x1          = ra            (return address)                  Caller
+// x2          = sp            (stack pointer)                   Callee
 // x3          = gp            (global pointer)
 // x4          = tp            (thread pointer)
-// x5 - x7     = t0 - t2       (temporary)
-// x8          = s0/fp         (saved register / frame pointer)
-// x9          = s1            (saved register)
-// x10 - x11   = a0 - a1       (arguments/return values)
-// x12 - x17   = a2 - a7       (arguments)
-// x18 - x27   = s2 - s11      (saved registers)
-// x28 - x31   = t3 - r6       (temporaries)
+// x5 - x7     = t0 - t2       (temporary)                       Caller
+// x8          = s0/fp         (saved register / frame pointer)  Callee
+// x9          = s1            (saved register)                  Callee
+// x10 - x11   = a0 - a1       (arguments/return values)         Caller
+// x12 - x17   = a2 - a7       (arguments)                       Caller
+// x18 - x27   = s2 - s11      (saved registers)                 Callee
+// x28 - x31   = t3 - r6       (temporaries)                     Caller
 
 struct reg {   // synced with register_t in <riscv/types.h>
 #ifdef _LP64



Home | Main Index | Thread Index | Old Index