I have already gone through src/sim/syscall_emul.hh : This explains what the system call works src/arch/alpha/tru64/process.cc (Similar to src/arch/x86/linux/syscalls.cc for ALPHA binaries) : This provides the declaration of the call.
I want to know where the parameters to mremapFunc are passed and invoked. Suppose I need to make the system call to mremapFunc then how do, I do it. The only places in ALPHA the parameters are set are src/kern/tru64/tru64.hh: process->setSyscallArg(tc, 0, gtoh(attrp->registers.a0)); src/kern/tru64/tru64.hh: process->setSyscallArg(tc, i, process->getSyscallArg(tc, index)); src/arch/alpha/process.cc: setSyscallArg(tc, 0, argc); src/arch/alpha/process.cc: setSyscallArg(tc, 1, argv_array_base); These are not executed just before call to "mremapFunc" Thanks, Debiprasanna Sahoo Research Scholar IIT Bhubaneswar On Fri, Oct 31, 2014 at 4:58 PM, Ahmad Hassan <[email protected]> wrote: > Look at: > src/arch/x86/linux/syscalls.cc > src/sim/syscall_emul.hh > > Regards, > > On 31 October 2014 11:25, Debiprasanna Sahoo via gem5-users < > [email protected]> wrote: > >> Hi, >> >> I am trying to understand the system call "mremapFunc" in se mode. I am >> unable to understand how is system call made. I understand that there is no >> direct call to this function. Rather it is called using doSyscall using >> call parameters and call number, but am unable to track the exact location >> of the "mremapFunc" system call. By exact location I mean, where are the >> system call name and arguments set. I also tried to search "setSyscallArg" >> but again could not figure out how this particular system call is made. >> Understanding this call by debugging is also difficult because the call is >> made infrequently. I also tried to debug using "gem5.debug" using flag >> "SyscallVerbose", but with less luck. Can anyone please help to understand >> this or let me know if I want to make this system call after few cycles, >> how to do so. >> >> Thanks, >> Debiprasanna Sahoo >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
