kernel: catch execution read fault on SG_NOEXEC segment (for mips)

This commit is contained in:
cinap_lenrek 2019-08-27 03:48:51 +02:00
parent 2149600d12
commit 49411b2ca1

View file

@ -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) {