mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
powerpc64: Fix early exit with invalid kernel SLB entries
The check for early exit should be checking the SLB entry itself. As currently written it was checking the address of the SLB, which is always non-zero, so would go through the kernel SR restore loop regardless. Submitted by: mmacy MFC after: 2 weeks
This commit is contained in:
parent
9ffdae0fd7
commit
1cd7081eb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344916
@ -89,7 +89,7 @@ restore_kernsrs:
|
||||
GET_CPUINFO(%r28)
|
||||
addi %r28,%r28,PC_KERNSLB
|
||||
ld %r29,16(%r28) /* One past USER_SLB_SLOT */
|
||||
cmpdi %r28,0
|
||||
cmpdi %r29,0
|
||||
beqlr /* If first kernel entry is invalid,
|
||||
* SLBs not in use, so exit early */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user