]> Git Repo - linux.git/commit
arm64: kernel: use ordinary return/argument register for el2_setup()
authorArd Biesheuvel <[email protected]>
Wed, 31 Aug 2016 11:05:12 +0000 (12:05 +0100)
committerWill Deacon <[email protected]>
Fri, 2 Sep 2016 10:21:15 +0000 (11:21 +0100)
commit23c8a500c24d02dd2de1bff968d4467b441717bb
treecd9c8c84ff541c789128870d75d26ba38b70dd18
parentb5fe242972ef3faaa6bcfe66cbacc7a0014faf89
arm64: kernel: use ordinary return/argument register for el2_setup()

The function el2_setup() passes its return value in register w20, and
in the two cases where the caller actually cares about this return value,
it is passed into set_cpu_boot_mode_flag() [almost] directly, which
expects its input in w20 as well.

So there is no reason to use a 'special' callee saved register here, but
we can simply follow the PCS for return value and first argument,
respectively.

Reviewed-by: Mark Rutland <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/kernel/head.S
This page took 0.057447 seconds and 4 git commands to generate.