qemu-e2k/include
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
..
authz
block async: Add an optional reentrancy guard to the BH API 2023-04-28 11:31:07 +02:00
chardev
crypto replace TABs with spaces 2023-03-20 12:43:50 +01:00
disas replace TABs with spaces 2023-03-20 12:43:50 +01:00
exec memory: prevent dma-reentracy issues 2023-04-28 11:20:01 +02:00
fpu
gdbstub gdbstub: Remove gdb_do_syscallv 2023-03-07 20:44:09 +00:00
hw hw/arm/bcm2835_property: Implement "get command line" message 2023-05-02 15:47:40 +01:00
io io: mark mixed functions that can suspend 2023-04-20 11:17:35 +02:00
libdecnumber
migration migration: move migration_global_dump() to migration-hmp-cmds.c 2023-04-24 15:01:46 +02:00
monitor hmp: add cryptodev info command 2023-03-07 12:38:59 -05:00
net net/eth: Introduce EthL4HdrProto 2023-03-10 15:35:38 +08:00
qapi monitor: mark mixed functions that can suspend 2023-04-20 11:17:35 +02:00
qemu * Prevent reentrant DMA accesses by default 2023-04-28 10:55:57 +01:00
qom
scsi
semihosting
standard-headers Update linux headers to v6.3rc5 2023-04-28 15:55:55 +02:00
sysemu linux-aio: use LinuxAioState from the running thread 2023-04-25 13:17:28 +02:00
tcg tcg: Replace tcg_abort with g_assert_not_reached 2023-04-23 08:17:46 +01:00
ui ui: introduce egl_init() 2023-03-13 23:48:45 +04:00
user *: Add missing includes of qemu/plugin.h 2023-03-22 15:06:57 +00:00
elf.h replace TABs with spaces 2023-03-20 12:43:50 +01:00
glib-compat.h
qemu-io.h
qemu-main.h