Re: Checking if processor honours the WP ... Stops the computer

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Sun, 29 Jun 1997 12:40:41 +0200


Hi,

> I have the same problem, in 2.1.43, 2.1.42 and before. I traced it
> down to the inline assembly block in arch/i386/mm/init.c.
>
> I don't know -why- it is dying, or what the WP is, but if you comment
> out the inline assembly and force the "test" to "no" you can get it to
> run again.

(1) What CPU do you use?

(2) Does the following patch help?

Have a nice day
Martin

--- init.c.mj Wed Jun 25 10:47:10 1997
+++ init.c Wed Jun 25 10:48:18 1997
@@ -348,7 +348,7 @@
local_flush_tlb();
current->mm->mmap->vm_start += PAGE_SIZE;
__asm__ __volatile__(
- "movb %0,%1 ; movb %1,%0"
+ "movb %0,%1 ; movb %1,%0 ; jmp 1f; 1:"
:"=m" (*(char *) __va(0)),
"=q" (tmp_reg)
:/* no inputs */