Mercurial > hg > Game > Cerium
diff TaskManager/kernel/main.cc @ 1413:5b024efa2429 draft
fix free on non copy DMA
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Feb 2012 10:07:27 +0900 |
parents | b194cb2d44bb |
children | af2adce9752e |
line wrap: on
line diff
--- a/TaskManager/kernel/main.cc Sat Feb 18 17:26:32 2012 +0900 +++ b/TaskManager/kernel/main.cc Sun Feb 19 10:07:27 2012 +0900 @@ -35,24 +35,21 @@ { int machineNum = 0; int speIdle = 0; - int poll_pattern = 0; - int useRefDma = 0; + int useRefDma = 0; for (int i = 1; argv[i]; ++i) { if (strcmp(argv[i], "-cpu") == 0) { - machineNum = atoi(argv[++i]); + machineNum = atoi(argv[++i]); } else if (strcmp(argv[i], "-p") == 0) { - profile = 1; - } else if (strcmp(argv[i], "-speidle") == 0) { - speIdle = atoi(argv[++i]); - } else if (strcmp(argv[i], "-poll") == 0) { - poll_pattern = 1; - } else if (strcmp(argv[i], "-ref") == 0) { - useRefDma |= 0x01; - } else if (strcmp(argv[i], "-pre") == 0) { - useRefDma |= 0x10; - } - } + profile = 1; + } else if (strcmp(argv[i], "-speidle") == 0) { // これなんだよ? + speIdle = atoi(argv[++i]); + } else if (strcmp(argv[i], "-copy") == 0) { // force copy DMA in FifoManager + useRefDma |= 0x01; + } else if (strcmp(argv[i], "-pre") == 0) { // deplicated + useRefDma |= 0x10; + } + } TaskManager *manager = new TaskManager(machineNum); manager->init(speIdle,useRefDma);