lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B80CA55.3040402@zytor.com>
Date:	Sat, 20 Feb 2010 21:53:25 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Graeme Russ <graeme.russ@...il.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: x86 embedded - Problem getting past 'move compressed kernel before
 decompression'

On 02/20/2010 09:45 PM, H. Peter Anvin wrote:
> 
> Instead, do something like:
> 
> 	asm volatile(
>  		"movl	%0, %%ds\n" \
>  		"movl	%0, %%es\n" \
>  		"movl	%0, %%fs\n" \
>  		"movl	%0, %%gs\n" \
> 		"movl	%0, %%ss\n" \
> 		"xorl	%ebp, %ebp\n" \
> 		"xorl	%ebx, %ebx\n" \
>  		"movl   $0x100000, %%eax\n" \
>  		"ljmpl	$0x10,$0x100000"
> 	 : : "S" (&boot_params), "D" (0), "c" (0x18));
> 
> 	-hpa
> 

Make that:

 	asm volatile(
  		"movl	%2, %%ds\n" \
  		"movl	%2, %%es\n" \
  		"movl	%2, %%fs\n" \
  		"movl	%2, %%gs\n" \
 		"movl	%2, %%ss\n" \
 		"xorl	%ebp, %ebp\n" \
 		"xorl	%ebx, %ebx\n" \
  		"ljmpl	$0x10,$0x100000"
 	 : : "S" (&boot_params), "D" (0), "r" (0x18));

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ