diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-05-07 09:47:47 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-05-07 09:47:47 +0000 |
commit | fa2fb65af4ad7afe90b8a9cb4099f1031ab5aeeb (patch) | |
tree | 49645499268c4afacb9b5aa30350f12261b2a99b /c/src/lib/libbsp/unix/posix/startup/bspstart.c | |
parent | 2007-05-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-fa2fb65af4ad7afe90b8a9cb4099f1031ab5aeeb.tar.bz2 |
2007-05-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* startup/bspstart.c: Use uintptr_t for address arithmetics.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/unix/posix/startup/bspstart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c index bcfc685232..88834879cf 100644 --- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c +++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c @@ -117,7 +117,7 @@ void bsp_postdriver_hook(void) void bsp_start(void) { - uint32_t workspace_ptr; + uintptr_t workspace_ptr; /* * Copy the table (normally done in shared main). @@ -172,7 +172,7 @@ void bsp_start(void) */ workspace_ptr = - (uint32_t) sbrk(BSP_Configuration.work_space_size + CPU_ALIGNMENT); + (uintptr_t) sbrk(BSP_Configuration.work_space_size + CPU_ALIGNMENT); workspace_ptr += CPU_ALIGNMENT - 1; workspace_ptr &= ~(CPU_ALIGNMENT - 1); |