]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/sharp-binary-only/sharp-aticore-oss-1.0.1/aticore-2.6.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / sharp-binary-only / sharp-aticore-oss-1.0.1 / aticore-2.6.patch
1 diff -U3 -N AtiCore-1.0.1.orig/Makefile AtiCore-1.0.1/Makefile
2 --- AtiCore-1.0.1.orig/Makefile 2005-04-05 09:39:23.926196896 +0000
3 +++ AtiCore-1.0.1/Makefile      2005-04-05 09:58:18.009789984 +0000
4 @@ -25,11 +25,13 @@
5  LD = armv5tel-linux-ld
6  endif
7  
8 -ifndef $(ASFLAGS)
9 +ifeq "$(FPU)" "soft"
10 +ASFLAGS=-mfpu=softfpa -mcpu=xscale
11 +else
12  ASFLAGS=-mcpu=xscale
13  endif
14  
15 -OBJS  = aticore_0.o
16 +OBJS  = aticore_0.o map.o
17  OBJS += aticore_1.o aticore_2.o aticore_3.o aticore_4.o aticore_5.o aticore_6.o aticore_7.o aticore_8.o aticore_9.o
18  # aticore_10.o
19  OBJS += aticore_11.o aticore_12.o aticore_13.o aticore_14.o aticore_15.o aticore_16.o aticore_17.o aticore_18.o aticore_19.o aticore_20.o
20 diff -U3 -N AtiCore-1.0.1.orig/aticore_1.s AtiCore-1.0.1/aticore_1.s
21 --- AtiCore-1.0.1.orig/aticore_1.s      2005-04-05 09:39:23.928196592 +0000
22 +++ AtiCore-1.0.1/aticore_1.s   2005-04-05 10:05:35.745244080 +0000
23 @@ -282,21 +282,6 @@
24                 LDMDB   R11, {R4,R11,SP,PC}
25  
26  ;;;;;
27 -               .GLOBAL MapBar
28 -               .type   MapBar, %function
29 -MapBar:
30 -               MOV     R12, SP
31 -               STMFD   SP!, {R11,R12,LR,PC}
32 -               SUB     R11, R12, #4
33 -               MOV     R0, #0xF1000000
34 -               LDR     R3, =unk_41948C
35 -               SUB     SP, SP, #0x44
36 -               STR     R0, [R3]
37 -               B       .loc_34D228
38 -.loc_34D228:
39 -               LDMDB   R11, {R11,SP,PC}
40 -
41 -;;;;;
42                 .GLOBAL UnMapBar
43                 .type   UnMapBar, %function
44  UnMapBar:
45 diff -U3 -N AtiCore-1.0.1.orig/map.c AtiCore-1.0.1/map.c
46 --- AtiCore-1.0.1.orig/map.c    1970-01-01 00:00:00.000000000 +0000
47 +++ AtiCore-1.0.1/map.c 2005-04-05 09:43:15.469996888 +0000
48 @@ -0,0 +1,34 @@
49 +#include <fcntl.h>
50 +#include <sys/mman.h>
51 +#include <unistd.h>
52 +#include <stdio.h>
53 +#include <sys/types.h>
54 +
55 +extern void *unk_41948C;
56 +
57 +void * MapBar(int Dev_Handle, int rp_unk1)
58 +{
59 +       int fd;
60 +       void *ptr;
61 +
62 +       fd = open ("/dev/mem", O_RDWR | O_SYNC);
63 +       if (fd < 0)
64 +       {
65 +               perror ("/dev/mem");
66 +               exit (1);
67 +       }
68 +
69 +       ptr = mmap (NULL, 0x01000000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0x08000000);
70 +       if (ptr == NULL)
71 +       {
72 +               perror ("mmap");
73 +               exit (1);
74 +       }
75 +
76 +       printf("MapBar: %p\n",ptr);
77 +
78 +       unk_41948C = ptr;
79 +
80 +       return ptr;
81 +}
82 +