[SLOF] [PATCH slof v5 3/6] fdt: Pass the resulting device tree to QEMU
Segher Boessenkool
segher at kernel.crashing.org
Mon Oct 16 19:02:55 AEDT 2017
On Mon, Oct 16, 2017 at 06:32:17PM +1100, Alexey Kardashevskiy wrote:
> +: fdt-boot-cpu ( -- bootcpu )
> + s" cpu" s" /chosen" find-node get-property 0<> IF 0 EXIT THEN
> + decode-int
> + nip nip ihandle>phandle
> + s" reg" rot get-property 0<> IF 0 EXIT THEN
> + decode-int
> + nip nip
> +;
0<> IF is exactly the same as just IF :-)
There is get-chosen to make this easier. The first line then
becomes:
s" cpu" get-chosen 0= IF 0 EXIT THEN
Is there no variable you can get the boot CPU from directly though?
Segher
More information about the SLOF
mailing list