view TaskManager/kernel/schedule/SchedMail.cc @ 1025:cb170249c752

minor fix
author yutaka@localhost.localdomain
date Mon, 08 Nov 2010 14:40:53 +0900
parents 19a57960c436
children
line wrap: on
line source

#include "SchedMail.h"
#include "SchedTaskList.h"
#include "SchedExit.h"
#include "error.h"

SchedTaskBase*
SchedMail::next(Scheduler *scheduler, SchedTaskBase *p)
{
    
   params_addr = scheduler->task_list_mail_read();

    __debug("[SchedMail:%s]\n", __FUNCTION__);

    if ((memaddr)params_addr == (memaddr)MY_SPE_COMMAND_EXIT) {
	return new SchedExit();
    } else {
        int dma_tag_switch = 0;
	return new SchedTaskList(params_addr, scheduler, dma_tag_switch);
    }
}