Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はos161で作業しており、char *program nameとchar **argvのレジスタ値を見つけて、traframe構造からexecvシステムコールに渡したいと思っています
trapframe->tf_a1 は argv 値を格納しますが、trapframe のすべてのデータ型は u_int32 です
どうすればそれらを見つけることができますか?
ありがとう
あなた/src/kern/arch/mips/syscall.c のケースでは、exec/execvケースがデフォルトで実装されているとは思わないので、それらを以下に実装する必要があります
/src/kern/arch/mips/syscall.c
void syscall(struct trapframe *tf) { ... switch (callno) { ... case exec: something ... } }