[Patch] [arm] support older plebs

Geoffrey Lee (glee@gnupilgrims.org)
Wed, 26 Mar 2003 00:13:58 +0800


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-22326-1048609370-0001-2
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

This patch has been in my patch directory for a while.

The PLEB is a SA-1100-based ARM computer developed at CSE at the
University of New South Wales. I have discovered some of the earlier
models would not set register 1 properly, which was required for Linux
to boot. This was inside their (very old) kernel tree but which they
never submitted for inclusion (?) It is a Photon1 with catapult
bootloader combination.

- G.

-- 
char p[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";

--=_courier-22326-1048609370-0001-2 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="arm-pleb.patch"

diff -urNp -X exclude linux-2.4.19-pleb.orig/arch/arm/kernel/head-armv.S linux-2.4.19-pleb/arch/arm/kernel/head-armv.S --- linux-2.4.19-pleb.orig/arch/arm/kernel/head-armv.S 2002-10-29 18:57:10.000000000 +0800 +++ linux-2.4.19-pleb/arch/arm/kernel/head-armv.S 2002-10-29 19:18:42.000000000 +0800 @@ -130,6 +130,9 @@ __entry: */ mov r1, #MACH_TYPE_L7200 #endif +#if defined(CONFIG_SA1100_PLEB) + mov r1, #MACH_TYPE_PLEB +#endif mov r0, #F_BIT | I_BIT | MODE_SVC @ make sure svc mode msr cpsr_c, r0 @ and all irqs disabled

--=_courier-22326-1048609370-0001-2--