summaryrefslogtreecommitdiffstats
path: root/leon2.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-06-11 22:30:10 +0200
committerJiri Gaisler <jiri@gaisler.se>2019-06-11 22:30:10 +0200
commit313c2c1643889a5b84dd0cff3886b22e821a5f34 (patch)
treedba621bdc66d231581eb4d34ba504c0847df3ff9 /leon2.c
parentAvoid array out of bounds warning on RISC-V (diff)
downloadsis-313c2c1643889a5b84dd0cff3886b22e821a5f34.tar.bz2
Fix C formatting with indent
Diffstat (limited to 'leon2.c')
-rw-r--r--leon2.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/leon2.c b/leon2.c
index a2f7ebf..6f669a5 100644
--- a/leon2.c
+++ b/leon2.c
@@ -425,7 +425,7 @@ apb_write (uint32 addr, uint32 data)
break;
case POWER_DOWN: /* 0x328 */
- pwd_enter(sregs);
+ pwd_enter (sregs);
break;
case CACHE_CTRL: /* 0x328 */
@@ -620,7 +620,7 @@ grlib_write_uart (uint32 addr, uint32 data)
{
while (wnuma)
{
- wnuma -= fwrite (wbufa, 1, wnuma, f1out);
+ wnuma -= fwrite (wbufa, 1, wnuma, f1out);
}
wbufa[wnuma++] = c;
}
@@ -658,7 +658,7 @@ flush_uart (void)
{
while (wnuma && f1open)
{
- wnuma -= fwrite (wbufa, 1, wnuma, f1out);
+ wnuma -= fwrite (wbufa, 1, wnuma, f1out);
}
}
@@ -667,8 +667,8 @@ uarta_tx (void)
{
while (f1open)
{
- while (fwrite (&uarta_sreg, 1, 1, f1out) != 1)
- continue;
+ while (fwrite (&uarta_sreg, 1, 1, f1out) != 1)
+ continue;
}
if (uart_stat_reg & UARTA_HRE)
{
@@ -791,8 +791,7 @@ timer_ctrl (uint32 val, int i)
2 (one word), or 3 (two words); WS should return the number of wait-states. */
static void
-store_bytes (char *mem, uint32 waddr, uint32 * data, int32 sz,
- int32 * ws)
+store_bytes (char *mem, uint32 waddr, uint32 * data, int32 sz, int32 * ws)
{
switch (sz)
{