MathewWi / sneek

Automatically exported from code.google.com/p/sneek
0 stars 0 forks source link

possible bug in boot2_run function in r108 #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile r108 
2.
3.

What is the expected output? What do you see instead?
hangs on loading boot2.bin (kernel.bin)

What revision are you using? With what configuration
(SNEEK/UNEEK/SNEEK+DI)?
SNEEK r108

Please provide any additional information below.
there are 2 definitions:

static u8 swi_v70[] =
{
    0xFF, 0xFF, 0x1F, 0x20,
};
static u8 swi_v80[] =
{
    0xFF, 0xFF, 0x1F, 0x20,
};

as you may see signatures are same.

so second if in following sequence won't execute anytime.

if( memcmp(ptr+i, swi_v70, sizeof(swi_v70) ) == 0)
{
...
}

if( memcmp(ptr+i, swi_v80, sizeof(swi_v80) ) == 0)
{
...
}

Original issue reported on code.google.com by pour.gar...@gmail.com on 25 Jul 2010 at 7:45

GoogleCodeExporter commented 9 years ago
all those patches are not used at all.

Original comment by cred...@rypp.net on 25 Jul 2010 at 10:47