diff options
author | jake <jake@FreeBSD.org> | 2002-12-23 02:18:45 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-12-23 02:18:45 +0000 |
commit | dff1689779868ff981771327b87cea8bf41e8e87 (patch) | |
tree | 2ea59024be6c44f70726c9ed295b6a60c2287fbf /sys | |
parent | 8355ab5ec5605d3dc2314473b03127582940b58f (diff) | |
download | FreeBSD-src-dff1689779868ff981771327b87cea8bf41e8e87.zip FreeBSD-src-dff1689779868ff981771327b87cea8bf41e8e87.tar.gz |
- Fix a bug where the faulting address for an mmu miss could sometimes be
clobbered due to some debug code. This was harmless and just superfluous
soft faults.
- Update some comments.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/exception.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sparc64/sparc64/exception.S b/sys/sparc64/sparc64/exception.S index cc8cba9..fa0f640 100644 --- a/sys/sparc64/sparc64/exception.S +++ b/sys/sparc64/sparc64/exception.S @@ -1334,7 +1334,7 @@ END(tl1_immu_miss_trap) /* * Extract the context from the contents of the tag access register. * If its non-zero this is a fault on a user address. Note that the - * faulting address is passed in %g2. + * faulting address is passed in %g1. */ sllx %g5, 64 - TAR_VPN_SHIFT, %g6 brnz,a,pn %g6, tl1_dmmu_miss_user @@ -1430,10 +1430,10 @@ ENTRY(tl1_dmmu_miss_trap) */ wrpr %g0, PSTATE_ALT, %pstate - KSTACK_CHECK - ldxa [%g0 + AA_DMMU_TAR] %asi, %g2 + KSTACK_CHECK + tl1_split clr %o1 set trap, %o2 @@ -1524,8 +1524,8 @@ ENTRY(tl1_dmmu_prot_1) /* * Extract the context from the contents of the tag access register. - * If its non-zero this is a fault on a user address, otherwise get - * the virtual page number. + * If its non-zero this is a fault on a user address. Note that the + * faulting address is passed in %g1. */ sllx %g5, 64 - TAR_VPN_SHIFT, %g6 brnz,a,pn %g6, tl1_dmmu_prot_user |