diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-11-16 17:08:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-11-16 17:08:54 +0000 |
commit | f64179c632742ca027733d15623bf886f9f92bbd (patch) | |
tree | cd2fbbf9d10c185abcb9363144fbf54960035fd4 /sys/arch/hppa | |
parent | ff279126857341c499734b4f160149ada4d1e49e (diff) |
flush the cache once we patched memory in ddb
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/db_interface.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c index 342fd922f60..cf2925aa54f 100644 --- a/sys/arch/hppa/hppa/db_interface.c +++ b/sys/arch/hppa/hppa/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.8 1999/09/10 19:56:25 mickey Exp $ */ +/* $OpenBSD: db_interface.c,v 1.9 1999/11/16 17:08:53 mickey Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -39,6 +39,7 @@ #include <machine/db_machdep.h> #include <machine/frame.h> +#include <machine/cpufunc.h> #include <ddb/db_access.h> #include <ddb/db_command.h> @@ -53,7 +54,6 @@ void kdbprinttrap __P((int, int)); - extern label_t *db_recover; extern int db_active; extern char *trap_type[]; @@ -157,6 +157,10 @@ db_write_bytes(addr, size, data) while (size--) *dst++ = *data++; + + /* unfortunately ddb does not provide any hooks for these */ + ficache(HPPA_SID_KERNEL, (vaddr_t)data, size); + fdcache(HPPA_SID_KERNEL, (vaddr_t)data, size); } |