Subject: Re: 'machine' DDB command
To: None <enami@netbsd.org>
From: Jaromír Dolecek <dolecek@ics.muni.cz>
List: tech-kern
Date: 01/18/2001 12:08:33
enami tsugutomo wrote:
> Modified Files:
> 	syssrc/sys/ddb: db_command.c
> 
> Log Message:
> db_command_table needs to be writable at least when DB_MACHINE_COMMANDS
> is defined.

Well, probably the DDB code should be rearranged a little
to make db_machine_commands_install() unnecessary ?

Probably the most simple solution is to mandate the data have to
be in db_machine_command_table[], change the entry in
db_command.c:db_command_table[] to:
#ifdef DB_MACHINE_COMMANDS
	{ "machine",    NULL,                   0, db_machine_command_table },
#endif

and g/c db_machine_commands_install(). This would also eliminate
need to glue in the table on boot (and allow the tables to be const).

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, dammit!  @@@@