firmware: Improve comments for fw_prev_arg1() and fw_next_arg1()
authorAnup Patel <anup.patel@wdc.com>
Fri, 27 Dec 2019 03:24:24 +0000 (08:54 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 27 Dec 2019 03:24:24 +0000 (08:54 +0530)
The state of a0, a1, and a2 registers in fw_prev_arg1() and
fw_next_arg1() is same as passed by previous booting stage
so we add this info in comments for both these functions.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
firmware/fw_dynamic.S
firmware/fw_jump.S
firmware/fw_payload.S

index ba9394d..192698a 100644 (file)
@@ -91,6 +91,8 @@ fw_save_info:
        .global fw_prev_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The previous arg1 should be returned in 'a0'.
         */
 fw_prev_arg1:
@@ -102,6 +104,8 @@ fw_prev_arg1:
        .global fw_next_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The next arg1 should be returned in 'a0'.
         */
 fw_next_arg1:
index 0015a80..e0a3b53 100644 (file)
@@ -39,6 +39,8 @@ fw_save_info:
        .global fw_prev_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The previous arg1 should be returned in 'a0'.
         */
 fw_prev_arg1:
@@ -50,6 +52,8 @@ fw_prev_arg1:
        .global fw_next_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The next arg1 should be returned in 'a0'.
         */
 fw_next_arg1:
index b9cb151..84d9ad4 100644 (file)
@@ -39,6 +39,8 @@ fw_save_info:
        .global fw_prev_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The previous arg1 should be returned in 'a0'.
         */
 fw_prev_arg1:
@@ -54,6 +56,8 @@ fw_prev_arg1:
        .global fw_next_arg1
        /*
         * We can only use a0, a1, and a2 registers here.
+        * The a0, a1, and a2 registers will be same as passed by
+        * previous booting stage.
         * The next arg1 should be returned in 'a0'.
         */
 fw_next_arg1: