rem: flags = disable_interrupts();
add: state = disable_interrupts();
context: add_debugger_command(char *name, int (*func)(int, char **), char *desc){	int flags;	struct debugger_command *cmd;	cmd = (struct debugger_command *)malloc(sizeof(struct debugger_command));	if (cmd == NULL)		return ENOMEM;	cmd->func = func;	cmd->name = name;	cmd->description = desc;	flags = disable_interrupts();	acquire_spinlock(&dbg_spinlock);	cmd->next = commands;	commands = cmd;	release_spinlock(&dbg_spinlock);	restore_interrupts(flags);	return B_NO_ERROR;}