Fixes procdata's ring buffers
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 11 Jan 2010 21:15:43 +0000 (13:15 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 14 Jan 2010 23:21:09 +0000 (15:21 -0800)
Ring buffers need their space to be allocated directly after the sring
struct.

kern/include/ros/procdata.h

index dddbae4..5aaed53 100644 (file)
@@ -26,7 +26,9 @@ typedef struct procinfo {
 typedef struct procdata {
        // The actual ring buffers for communicating with user space
        syscall_sring_t  syscallring;  // Per-process ring buffer for async syscalls
+       char padding1[SYSCALLRINGSIZE - sizeof(syscall_sring_t)];
        sysevent_sring_t syseventring; // Per-process ring buffer for async sysevents
+       char padding2[SYSEVENTRINGSIZE - sizeof(sysevent_sring_t)];
 #ifdef __i386__
        segdesc_t *ldt;
 #endif