diff options
| author | Ken Smith <kensmith@FreeBSD.org> | 2004-10-09 16:42:09 +0000 |
|---|---|---|
| committer | Ken Smith <kensmith@FreeBSD.org> | 2004-10-09 16:42:09 +0000 |
| commit | 27dd55ed35e6bdc47bd2e99074df1acb2622f119 (patch) | |
| tree | 378fc95d8e63761d3a29f7de824a2e59a3dd7cd9 /sys | |
| parent | 8353d82bfd47cd7bad33f28d90d95475a82cb386 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sparc64/sparc64/machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index f7f08c481e8f..cc7eb3d0f2d4 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -646,6 +646,8 @@ set_mcontext(struct thread *td, const mcontext_t *mc) return (EINVAL); tf = td->td_frame; pcb = td->td_pcb; + /* Make sure the windows are spilled first. */ + flushw(); wstate = tf->tf_wstate; bcopy(mc, tf, sizeof(*tf)); tf->tf_wstate = wstate; |
