summaryrefslogtreecommitdiff
path: root/post/cpu/load.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-27 21:31:46 +0000
committerwdenk <wdenk>2003-06-27 21:31:46 +0000
commit8bde7f776c77b343aca29b8c7b58464d915ac245 (patch)
tree20f1fd99975215e7c658454a15cdb4ed4694e2d4 /post/cpu/load.c
parent993cad9364c6b87ae429d1ed1130d8153f6f027e (diff)
downloadu-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.zip
u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.gz
u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.bz2
* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'post/cpu/load.c')
-rw-r--r--post/cpu/load.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/post/cpu/load.c b/post/cpu/load.c
index b3418ef..393c568 100644
--- a/post/cpu/load.c
+++ b/post/cpu/load.c
@@ -61,112 +61,112 @@ static struct cpu_post_load_s
} cpu_post_load_table[] =
{
{
- OP_LWZ,
+ OP_LWZ,
4,
0,
0,
4
},
{
- OP_LHA,
+ OP_LHA,
3,
0,
0,
2
},
{
- OP_LHZ,
+ OP_LHZ,
2,
0,
0,
2
},
{
- OP_LBZ,
+ OP_LBZ,
1,
0,
0,
1
},
{
- OP_LWZU,
+ OP_LWZU,
4,
1,
0,
4
},
{
- OP_LHAU,
+ OP_LHAU,
3,
1,
0,
2
},
{
- OP_LHZU,
+ OP_LHZU,
2,
1,
0,
2
},
{
- OP_LBZU,
+ OP_LBZU,
1,
1,
0,
1
},
{
- OP_LWZX,
+ OP_LWZX,
4,
0,
1,
4
},
{
- OP_LHAX,
+ OP_LHAX,
3,
0,
1,
2
},
{
- OP_LHZX,
+ OP_LHZX,
2,
0,
1,
2
},
{
- OP_LBZX,
+ OP_LBZX,
1,
0,
1,
1
},
{
- OP_LWZUX,
+ OP_LWZUX,
4,
1,
1,
4
},
{
- OP_LHAUX,
+ OP_LHAUX,
3,
1,
1,
2
},
{
- OP_LHZUX,
+ OP_LHZUX,
2,
1,
1,
2
},
{
- OP_LBZUX,
+ OP_LBZUX,
1,
1,
1,
@@ -186,7 +186,7 @@ int cpu_post_test_load (void)
struct cpu_post_load_s *test = cpu_post_load_table + i;
uchar data[16] =
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
- ulong base0 = (ulong) (data + 8);
+ ulong base0 = (ulong) (data + 8);
ulong base = base0;
ulong value;
@@ -194,7 +194,7 @@ int cpu_post_test_load (void)
{
ulong code[] =
{
- ASM_12(test->cmd, 5, 3, 4),
+ ASM_12(test->cmd, 5, 3, 4),
ASM_BLR,
};
@@ -204,7 +204,7 @@ int cpu_post_test_load (void)
{
ulong code[] =
{
- ASM_11I(test->cmd, 4, 3, test->offset),
+ ASM_11I(test->cmd, 4, 3, test->offset),
ASM_BLR,
};
@@ -224,27 +224,27 @@ int cpu_post_test_load (void)
switch (test->width)
{
case 1:
- ret = *(uchar *)(base0 + test->offset) == value ?
+ ret = *(uchar *)(base0 + test->offset) == value ?
0 : -1;
- break;
+ break;
case 2:
- ret = *(ushort *)(base0 + test->offset) == value ?
+ ret = *(ushort *)(base0 + test->offset) == value ?
0 : -1;
- break;
+ break;
case 3:
- ret = *(short *)(base0 + test->offset) == value ?
+ ret = *(short *)(base0 + test->offset) == value ?
0 : -1;
- break;
+ break;
case 4:
- ret = *(ulong *)(base0 + test->offset) == value ?
+ ret = *(ulong *)(base0 + test->offset) == value ?
0 : -1;
- break;
+ break;
}
}
if (ret != 0)
{
- post_log ("Error at load test %d !\n", i);
+ post_log ("Error at load test %d !\n", i);
}
}