Re: ddb: simplify "machine" command handling

2022-04-11 Thread Jeremie Courreges-Anglas
On Mon, Apr 11 2022, Christian Weisgerber wrote: > Christian Weisgerber: > >> This will allow constifying the ddb command tables in a subsequent >> step. > > And here's that boring follow-up diff. sparc64 and riscv64 GENERIC and GENERIC.MP build successfully with this diff and the previous one,

Re: ddb: simplify "machine" command handling

2022-04-11 Thread Christian Weisgerber
Christian Weisgerber: > This will allow constifying the ddb command tables in a subsequent > step. And here's that boring follow-up diff. M sys/arch/alpha/alpha/db_interface.c M sys/arch/amd64/amd64/db_interface.c M sys/arch/arm/arm/db_interface.c M sys/arch/arm64/arm64/db_interface.c M

ddb: simplify "machine" command handling

2022-04-10 Thread Christian Weisgerber
Most of our architectures implement a "machine" command as a MD extension in ddb(4). Currently that is handled in this way: * A define is placed in a MD header. * The MI ddb code checks for the define, creates an incomplete entry in the command table, and provides an initialization function. *