From a5cd32ae8e71e4c22c0c16c5562484cc94d003b9 Mon Sep 17 00:00:00 2001 From: Andras Tantos Date: Sun, 21 Feb 2021 03:01:56 +0000 Subject: [PATCH] Changes during UNICOS install experiments. Mainly: - Waitpid SYSCALL statistics dumping added - 'core' hard drive added to configs --- simulator/sim_lib/sys_task_req.cpp | 7 +++++++ unicos.param | 22 ++++++++++++++++++++-- unicos_ramfs.param | 18 ++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/simulator/sim_lib/sys_task_req.cpp b/simulator/sim_lib/sys_task_req.cpp index 1a3c819..08aa01d 100644 --- a/simulator/sim_lib/sys_task_req.cpp +++ b/simulator/sim_lib/sys_task_req.cpp @@ -260,6 +260,13 @@ void ParseUnicosExchangePacket(const ExchangePacket_c &aCurrentEP, const Exchang aLogger << " , "; PrintStringArrayArg(aLogger, 2, aCurrentEP, Mainframe); break; + case 0x9b: // waitpid + PrintIntArg(aLogger, 0, aCurrentEp, Mainframe); + aLogger << " , "; + PrintPtrArg(aLogger, 1, aCurrentEp, Mainframe); + aLogger << " , "; + PrintIntArg(aLogger, 2, aCurrentEp, Mainframe); + break; default: for (uint32_t ArgIdx = 0; ArgIdx < std::min(Entry.ArgCnt, uint32_t(10)); ++ArgIdx) { if (ArgIdx != 0) aLogger << " , "; diff --git a/unicos.param b/unicos.param index 15d111f..5a051ae 100644 --- a/unicos.param +++ b/unicos.param @@ -40,8 +40,8 @@ filesystem { RAM ramdev { length 12288 blocks; pdd ram { - minor 3; - block 0; + minor 3; + block 0; length 12288 blocks; } } @@ -87,6 +87,20 @@ filesystem { length 781000 sectors; } } + disk "core" { + type DD_U; + iopath { + cluster 0; + eiop 0; + channel 025; + } + unit 0; + pdd core { + minor 6; + sector 0; + length 32768 sectors; + } + } ldd ram { minor 58; pdd ram; @@ -103,6 +117,10 @@ filesystem { minor 61; pdd root; } + ldd core { + minor 62; + pdd core; + } /* rootdev is ldd ram;*/ rootdev is ldd root; swapdev is ldd swap; diff --git a/unicos_ramfs.param b/unicos_ramfs.param index 7379cb5..640c85f 100644 --- a/unicos_ramfs.param +++ b/unicos_ramfs.param @@ -87,6 +87,20 @@ filesystem { length 781000 sectors; } } + disk "core" { + type DD_U; + iopath { + cluster 0; + eiop 0; + channel 025; + } + unit 0; + pdd core { + minor 6; + sector 0; + length 32768 sectors; + } + } ldd ram { minor 58; pdd ram; @@ -103,6 +117,10 @@ filesystem { minor 61; pdd root; } + ldd core { + minor 62; + pdd core; + } rootdev is ldd ram; /* rootdev is ldd root;*/ swapdev is ldd swap;