diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-09-15 16:32:52 +0200 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2025-10-09 19:36:45 -0600 |
| commit | 781380d2cdef34559a0125ca6464b90bfc01594f (patch) | |
| tree | b091a5b92285704e04fe91786100d1a95579c65c /scripts/bpf_doc.py | |
| parent | 812258ff4166bcd41c7d44707e0591f9ae32ac8c (diff) | |
riscv: kgdb: Ensure that BUFMAX > NUMREGBYTES
The current value of BUFMAX is similar as in other architectures, but as
per documentation on KGDB (see
'Documentation/process/debugging/kgdb.rst'), BUFMAX has to be larger
than NUMREGBYTES.
Some NUMREGBYTES architectures (e.g. powerpc or hexagon) actually define
BUFMAX in relation to NUMREGBYTES, and thus this condition is always
guaranteed. Since 2048 is a value that is generally accepted on all
architectures, and that is larger than the current value of NUMREGBYTES,
we can keep this value in arch/riscv, but we can at least add an
'static_assert' as an extra measure just in case NUMREGBYTES changes in
the future for some unforseen reason.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Link: https://lore.kernel.org/r/20250915143252.154955-1-mikisabate@gmail.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
