Initialize the new_thread_stack so syslet support testing has one
authorZach Brown <zach.brown@oracle.com>
Wed, 19 Sep 2007 06:42:18 +0000 (08:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 19 Sep 2007 06:42:18 +0000 (08:42 +0200)
Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/syslet-rw.c

index e0dddd8761268487c8ce15f2c000a4cd8603e18a..dcfcb79f4b16b62c4c0c5038b9548a72ee3cfaf6 100644 (file)
@@ -281,6 +281,7 @@ static int async_head_init(struct syslet_data *sd, unsigned int depth)
        sd->ahu.head_stack = thread_stack_alloc();
        sd->ahu.head_eip = (unsigned long) cachemiss_thread_start;
        sd->ahu.new_thread_eip = (unsigned long) cachemiss_thread_start;
        sd->ahu.head_stack = thread_stack_alloc();
        sd->ahu.head_eip = (unsigned long) cachemiss_thread_start;
        sd->ahu.new_thread_eip = (unsigned long) cachemiss_thread_start;
+       sd->ahu.new_thread_stack = thread_stack_alloc();
 
        return 0;
 }
 
        return 0;
 }