diff options
-rw-r--r-- | sys/ddb/db_command.c | 19 | ||||
-rw-r--r-- | sys/ddb/db_command.h | 3 |
2 files changed, 20 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 2310a7c1298..061900f072c 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.14 1998/02/25 19:53:46 weingart Exp $ */ +/* $OpenBSD: db_command.c,v 1.15 1998/08/30 15:38:25 art Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -31,6 +31,8 @@ * Command dispatcher. */ #include <sys/param.h> +#include <sys/types.h> +#include <sys/mount.h> #include <sys/systm.h> #include <sys/proc.h> #include <sys/reboot.h> @@ -51,6 +53,8 @@ #include <ddb/db_extern.h> #include <vm/vm.h> +#include <sys/syscall.h> +#include <sys/syscallargs.h> /* * Exported global variables @@ -380,6 +384,7 @@ struct db_command db_command_table[] = { { "boot", NULL, 0, db_boot_cmds }, { "help", db_help_cmd, 0, NULL }, { "hangman", db_hangman, 0, NULL }, + { "sync", db_sync_cmd, 0, NULL }, { NULL, NULL, 0, NULL } }; @@ -544,3 +549,15 @@ db_boot_dump_cmd(addr, haddr, count, modif) { boot(RB_DUMP | RB_TIMEBAD); } + +void +db_sync_cmd(addr, haddr, count, modif) + db_expr_t addr; + int haddr; + db_expr_t count; + char *modif; +{ + register_t rval[2]; + + sys_sync(&proc0, NULL, rval); +} diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index e9b8831706f..71f639dbcfe 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.h,v 1.7 1998/02/25 19:53:48 weingart Exp $ */ +/* $OpenBSD: db_command.h,v 1.8 1998/08/30 15:38:26 art Exp $ */ /* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */ /* @@ -49,6 +49,7 @@ void db_fncall __P((db_expr_t, int, db_expr_t, char *)); void db_boot_sync_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_boot_crash_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_boot_dump_cmd __P((db_expr_t, int, db_expr_t, char *)); +void db_sync_cmd __P((db_expr_t, int, db_expr_t, char *)); db_addr_t db_dot; /* current location */ db_addr_t db_last_addr; /* last explicit address typed */ |