[SLOF] [PATCH slof] client: Load initramdisk location

Segher Boessenkool segher at kernel.crashing.org
Fri Nov 8 21:26:24 AEDT 2019


On Fri, Nov 08, 2019 at 07:34:39PM +1100, Alexey Kardashevskiy wrote:
> +  s" linux,initrd-end" get-chosen IF decode-int -rot 2drop ELSE 0 THEN
> +  s" linux,initrd-start" get-chosen IF decode-int -rot 2drop ELSE 0 THEN

I'd write  -rot 2drop  as  nip nip  .  Dunno if you find that simpler to
read as well though :-)

> +  2dup - dup IF
> +    ciregs >r4 !
> +    ciregs >r3 !
> +    drop
> +  ELSE
> +    3drop
> +  THEN

( end start )
2dup <> IF
  tuck - ( start len )
  ciregs >r4 !
  ciregs >r3 !
THEN

?


Segher


More information about the SLOF mailing list