view TaskManager/kernel/spe/SpeNop2Ready.cc @ 31:6a77b5e755ab

*** empty log message ***
author gongo
date Tue, 12 Feb 2008 13:56:54 +0900
parents 2356238ebea7
children
line wrap: on
line source

#include <stdio.h>
#include "SpeNop2Ready.h"
#include "SpeMail.h"
#include "error.h"

SpeNop2Ready::SpeNop2Ready(DmaManager *cn)
{
    connector = cn;
}

void
SpeNop2Ready::exec(void)
{
    __debug("[SpeNop2Ready:%s]\n", __FUNCTION__);

    connector->mail_write(MY_SPE_STATUS_READY);
}

SpeTaskBase*
SpeNop2Ready::next(SpeManager *m, SpeTaskBase *p)
{
    __debug("[SpeNop2Ready:%s]\n", __FUNCTION__);
    
    delete p;

    return new SpeMail(connector);
}