@@ -40,8 +40,6 @@ void map(ArmGlobals *g, UInt32 phys, UInt32 virt);
4040unsigned long arm_entry (const void * emulStateP , char * userData68KP ,
4141 Call68KFuncType * call68KFuncP )
4242{
43- int i ;
44-
4543 ArmStack * stack = (ArmStack * ) userData68KP ;
4644 ArmGlobals * g ;
4745 UInt32 func ;
@@ -105,7 +103,7 @@ Err HALDisplayGetAttributes(UInt16 attr, UInt32 *valueP);
105103
106104UInt32 foobar ()
107105{
108- UInt32 val = 'wtf \0' ;
106+ UInt32 val = ( 'w' << 24 )|( 't' << 16 )|( 'f' << 8 )| ' \0' ;
109107 void * old , * fptr ;
110108 // depth = 16
111109 // videorambase = 0x50000000
@@ -175,30 +173,29 @@ int decode_bpp(UInt32 lccr3)
175173 */
176174UInt32 fb_test (ArmGlobals * g )
177175{
178- UInt32 lccr1 = reg (LCCR1 );
176+ /* UInt32 lccr1 = reg(LCCR1);
179177 UInt32 lccr2 = reg(LCCR2);
180- UInt32 lccr3 = reg (LCCR3 );
178+ */ UInt32 lccr3 = reg (LCCR3 );
181179
182- UInt32 w = (lccr1 & 0x3ff ) + 1 ;
183- UInt32 h = (lccr2 & 0x3ff ) + 1 ;
184180 UInt32 bpp = decode_bpp (lccr3 );
181+ /* UInt32 w = (lccr1 & 0x3ff) + 1;
182+ UInt32 h = (lccr2 & 0x3ff) + 1;
185183 UInt32 len = w * h * bpp / 8;
186184
187185 int alldead;
188-
186+ */
189187 /* older devices use 8-bit & palette, what do we do for them? */
190188 if (bpp != 16 ) {
191189 return 0xbadfb000 | bpp ;
192190 }
193191
194- void * fb_base = (void * ) reg ( reg (FDADR0 ) + DMA_SRC );
192+ /* void *fb_base = (void*) reg( reg(FDADR0) + DMA_SRC);
195193 void *fb_end = fb_base + len;
194+ */
196195
197-
198- UInt16 i = 0 ;
199- UInt16 * j = 0 ;
200196 irq_off ();
201- /*
197+ /* UInt16 i=0;
198+ UInt16 *j=0;
202199 for(i=0; i<0xff; i++) {
203200 alldead = 1;
204201 for(j = fb_base; (void*)j < fb_end; j++) {
0 commit comments