Thread (8 messages) flat view 8 messages, 4 authors, 2016-02-18

Re: Fix BUG_ON() reporting in real mode on powerpc

From: Anshuman Khandual <hidden>
Date: 2016-02-17 08:34:39

On 02/17/2016 12:46 PM, Balbir Singh wrote:
quoted
quoted
It might be a little better to do this:

		bugaddr = regs->nip;
		if (REGION_ID(bugaddr) == 0 && !(regs->msr & MSR_IR))
			bugaddr += PAGE_OFFSET;

It is possible to execute from addresses with the 0xc000... on top in
real mode, because the CPU ignores the top 4 address bits in real
mode.
Good catch! Thank you

Changelog:
     Don't add PAGE_OFFSET blindly, check if REGION_ID is 0
Cant we use USER_REGION_ID directly ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help