qemu/include/hw/misc
Daniel Bertalan f802ff1e28 hw/arm/bcm2835_property: Implement "get command line" message
This query copies the kernel command line into the message buffer. It
was previously stubbed out to return empty, this commit makes it reflect
the arguments specified with `-append`.

I observed the following peculiarities on my Pi 3B+:
- If the buffer is shorter than the string, the response header gives
  the full length, but no data is actually copied.
- No NUL terminator is added: even if the buffer is long enough to fit
  one, the buffer's original contents are preserved past the string's
  end.
- The VC firmware adds the following extra parameters beside the
  user-supplied ones (via /boot/cmdline.txt): `video`, `vc_mem.mem_base`
  and `vc_mem.mem_size`. This is currently not implemented in qemu.

Signed-off-by: Daniel Bertalan <dani@danielbertalan.dev>
Message-id: 20230425103250.56653-1-dani@danielbertalan.dev
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: added comment about NUL and short-buffer behaviour]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-05-02 15:47:40 +01:00
..
macio input/adb: Only include header where needed 2023-02-06 11:41:39 +00:00
a9scu.h
allwinner-a10-ccm.h hw/misc: Allwinner-A10 Clock Controller Module Emulation 2023-01-12 16:50:19 +00:00
allwinner-a10-dramc.h hw/misc: Allwinner A10 DRAM Controller Emulation 2023-01-12 16:50:19 +00:00
allwinner-cpucfg.h
allwinner-h3-ccu.h
allwinner-h3-dramc.h
allwinner-h3-sysctrl.h
allwinner-sid.h
arm11scu.h
arm_integrator_debug.h
armsse-cpu-pwrctrl.h
armsse-cpuid.h
armsse-mhu.h
armv7m_ras.h
aspeed_hace.h
aspeed_i3c.h
aspeed_lpc.h Don't include headers already included by qemu/osdep.h 2023-02-08 07:28:05 +01:00
aspeed_peci.h
aspeed_sbc.h
aspeed_scu.h
aspeed_sdmc.h
aspeed_xdma.h
auxbus.h
avr_power.h
bcm2835_cprman.h
bcm2835_cprman_internals.h
bcm2835_mbox.h
bcm2835_mbox_defs.h
bcm2835_mphi.h
bcm2835_powermgt.h
bcm2835_property.h hw/arm/bcm2835_property: Implement "get command line" message 2023-05-02 15:47:40 +01:00
bcm2835_rng.h
bcm2835_thermal.h
cbus.h
empty_slot.h
grlib_ahb_apb_pnp.h
imx6_ccm.h
imx6_src.h
imx6ul_ccm.h
imx7_ccm.h
imx7_gpr.h
imx7_snvs.h
imx25_ccm.h
imx31_ccm.h
imx_ccm.h
imx_rngc.h
iotkit-secctl.h
iotkit-sysctl.h
iotkit-sysinfo.h
ivshmem.h
lasi.h lasi: fix RTC migration 2023-04-20 11:17:35 +02:00
led.h
mac_via.h input/adb: Only include header where needed 2023-02-06 11:41:39 +00:00
mchp_pfsoc_dmc.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mchp_pfsoc_ioscb.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mchp_pfsoc_sysreg.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mips_cmgcr.h hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
mips_cpc.h
mips_itu.h hw/mips/itu: Pass SAAR using QOM link property 2023-03-08 00:37:48 +01:00
mos6522.h input/adb: Only include header where needed 2023-02-06 11:41:39 +00:00
mps2-fpgaio.h
mps2-scc.h
msf2-sysreg.h
npcm7xx_clk.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_gcr.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_mft.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_pwm.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_rng.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
nrf51_rng.h
pca9552.h
pca9552_regs.h
pvpanic.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
sifive_e_prci.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
sifive_test.h
sifive_u_otp.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
sifive_u_prci.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
stm32f2xx_syscfg.h
stm32f4xx_exti.h
stm32f4xx_syscfg.h
tz-mpc.h
tz-msc.h
tz-ppc.h
unimp.h
virt_ctrl.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
vmcoreinfo.h
xlnx-versal-crl.h
xlnx-versal-pmc-iou-slcr.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
xlnx-versal-xramc.h
xlnx-zynqmp-apu-ctrl.h
xlnx-zynqmp-crf.h