summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-28 16:09:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-28 16:09:00 +0000
commit403d7b188f3e8e7e4d4040f4927e9c49f71d1dfa (patch)
tree6220a98a3c8225b6821ef012124155fb89ab7094 /c/src/exec/libnetworking/rtems
parentCorrected to include shared console driver. (diff)
downloadrtems-403d7b188f3e8e7e4d4040f4927e9c49f71d1dfa.tar.bz2
Alignment corrected per Eric Norum's suggestion.
Diffstat (limited to 'c/src/exec/libnetworking/rtems')
-rw-r--r--c/src/exec/libnetworking/rtems/rtems_glue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/libnetworking/rtems/rtems_glue.c b/c/src/exec/libnetworking/rtems/rtems_glue.c
index 8ef1626906..e57401a6b3 100644
--- a/c/src/exec/libnetworking/rtems/rtems_glue.c
+++ b/c/src/exec/libnetworking/rtems/rtems_glue.c
@@ -157,7 +157,8 @@ bsd_init ()
* Set up mbuf data structures
*/
- p = malloc(nmbuf * MSIZE);
+ p = malloc(nmbuf * MSIZE + MSIZE - 1);
+ p = (char *)(((unsigned long)p + MSIZE - 1) & ~(MSIZE - 1));
if (p == NULL)
rtems_panic ("Can't get network memory.");
for (i = 0; i < nmbuf; i++) {