pmap_writetext(): use context 0.
This commit is contained in:
parent
7a5cd3368f
commit
2b1e7bab51
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.94 1997/08/05 11:06:58 pk Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.95 1997/08/31 21:08:03 pk Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -6618,13 +6618,16 @@ pmap_writetext(dst, ch)
|
|||
unsigned char *dst;
|
||||
int ch;
|
||||
{
|
||||
int s, pte0, pte;
|
||||
int s, pte0, pte, ctx;
|
||||
vm_offset_t va;
|
||||
|
||||
s = splpmap();
|
||||
va = (unsigned long)dst & (~PGOFSET);
|
||||
cpuinfo.cache_flush(dst, 1);
|
||||
|
||||
ctx = getcontext();
|
||||
setcontext(0);
|
||||
|
||||
#if defined(SUN4M)
|
||||
if (CPU_ISSUN4M) {
|
||||
pte0 = getpte4m(va);
|
||||
|
@ -6653,6 +6656,7 @@ pmap_writetext(dst, ch)
|
|||
}
|
||||
#endif
|
||||
cpuinfo.cache_flush(dst, 1);
|
||||
setcontext(ctx);
|
||||
splx(s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue