[eros-cvs] cvs commit: eros/src/base/sys/kernel kern_heap.cxx

shap@eros.cs.jhu.edu shap@eros.cs.jhu.edu
Wed, 25 Jul 2001 01:43:00 -0400


shap        01/07/25 01:43:00

  Modified:    src/base/sys/kernel kern_heap.cxx
  Log:
  Ensure that kernel malloc pointers are properly aligned!

Revision  Changes    Path
1.6       +1 -0      eros/src/base/sys/kernel/kern_heap.cxx

Index: kern_heap.cxx
===================================================================
RCS file: /cvs/eros/src/base/sys/kernel/kern_heap.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- kern_heap.cxx	2001/07/25 04:50:08	1.5
+++ kern_heap.cxx	2001/07/25 05:43:00	1.6
@@ -130,6 +130,7 @@
 
   *((char *) vp) = 0;		/* cause kernel to crash if page not present */
   heap_end += nBytes;
+  heap_end = align_up(heap_end, 4);
     
   DEBUG(alloc)
     MsgLog::dprintf(false,