kernel: catch execution read fault on SG_NOEXEC segment (for mips)
This commit is contained in:
parent
2149600d12
commit
49411b2ca1
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ faultmips(Ureg *ur, int user, int code)
|
|||
/* print("fault: %s code %d va %#p pc %#p r31 %#lux tlbvirt %#lux\n",
|
||||
up->text, code, ur->badvaddr, ur->pc, ur->r31, tlbvirt());/**/
|
||||
|
||||
if (Debug && ckfaultstuck(ur, read, code) || fault(addr, read) == 0)
|
||||
if (Debug && ckfaultstuck(ur, read, code) || fault(addr, ur->pc, read) == 0)
|
||||
return;
|
||||
|
||||
if(user) {
|
||||
|
|
Loading…
Reference in a new issue