diff options
author | 1999-11-16 17:08:53 +0000 | |
---|---|---|
committer | 1999-11-16 17:08:53 +0000 | |
commit | 91c88800bb92bd74b3f77fd7fc38aa3cf72599a6 (patch) | |
tree | 666a00c47e8f98ece14da55d8da93b5c5fd06364 | |
parent | Close PR 961, approved by millert@ (diff) | |
download | wireguard-openbsd-91c88800bb92bd74b3f77fd7fc38aa3cf72599a6.tar.xz wireguard-openbsd-91c88800bb92bd74b3f77fd7fc38aa3cf72599a6.zip |
flush the cache once we patched memory in ddb
-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); } |