sg3-utils: add newer buildable version
[openembedded.git] / recipes / linux / logicpd-pxa270-2.6.19.2 / logicpd-pxa270-hardware-id-hack.patch
1
2 Index: arch/arm/kernel/head.S
3 ===================================================================
4 RCS file: /cvs/eps/dev_eng/sw/products/Linux/PXAEngine/pxa/linux-2.6.17-rc5/arch/arm/kernel/head.S,v
5 retrieving revision 1.1.1.1
6 diff -c -3 -p -r1.1.1.1 head.S
7 *** arch/arm/kernel/head.S      29 May 2006 00:53:47 -0000      1.1.1.1
8 --- arch/arm/kernel/head.S      1 Jun 2006 17:37:16 -0000
9 *************** ENTRY(stext)
10 *** 74,79 ****
11 --- 74,93 ----
12         msr     cpsr_c, #PSR_F_BIT | PSR_I_BIT | MODE_SVC @ ensure svc mode
13                                                 @ and irqs disabled
14         mrc     p15, 0, r9, c0, c0              @ get processor id
15
16 +       /* LPD--
17 +        * This fakes out the Linux kernel into believing that it is
18 +        * running on a Mainstone hardware platform. The LogicLoader (LoLo)
19 +        * doesn't currently pass kernel parameters correctly for 2.6 ARM
20 +        * kernels. Therefore, we just hardcode it here.
21 +        *
22 +        * --LPD
23 +        */
24 +       mov     r0, #0
25 +       mov     r1, #0x300
26 +       orr     r1, r1, #0x0a0
27 +       orr     r1, r1, #0x002
28
29         bl      __lookup_processor_type         @ r5=procinfo r9=cpuid
30         movs    r10, r5                         @ invalid processor (r5=0)?
31         beq     __error_p                       @ yes, error 'p'