Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91836710 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Use predefined macro for ESR_DIZ



Just use macro instead of hardcoded value.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 6e80cff5
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -75,6 +75,7 @@
#include <asm/mmu.h>
#include <asm/mmu.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/signal.h>
#include <asm/signal.h>
#include <asm/registers.h>
#include <asm/asm-offsets.h>
#include <asm/asm-offsets.h>


#undef DEBUG
#undef DEBUG
@@ -581,7 +582,7 @@ ex_handler_done:
		 * tried to access a kernel or read-protected page - always
		 * tried to access a kernel or read-protected page - always
		 * a SEGV). All other faults here must be stores, so no
		 * a SEGV). All other faults here must be stores, so no
		 * need to check ESR_S as well. */
		 * need to check ESR_S as well. */
		andi	r4, r4, 0x800		/* ESR_Z - zone protection */
		andi	r4, r4, ESR_DIZ		/* ESR_Z - zone protection */
		bnei	r4, ex2
		bnei	r4, ex2


		ori	r4, r0, swapper_pg_dir
		ori	r4, r0, swapper_pg_dir
@@ -595,7 +596,7 @@ ex_handler_done:
		 * tried to access a kernel or read-protected page - always
		 * tried to access a kernel or read-protected page - always
		 * a SEGV). All other faults here must be stores, so no
		 * a SEGV). All other faults here must be stores, so no
		 * need to check ESR_S as well. */
		 * need to check ESR_S as well. */
		andi	r4, r4, 0x800		/* ESR_Z */
		andi	r4, r4, ESR_DIZ		/* ESR_Z */
		bnei	r4, ex2
		bnei	r4, ex2
		/* get current task address */
		/* get current task address */
		addi	r4 ,CURRENT_TASK, TOPHYS(0);
		addi	r4 ,CURRENT_TASK, TOPHYS(0);