System calls are realized in QEMU. x86-64 uses syscall instruction to fire up system calls. You are looking for helper_syscall in target-i386/op_helper.c.
Regards, Deepak On Sat, Feb 8, 2014 at 5:49 PM, beilei sun <[email protected]> wrote: > Hi, > > *How are system calls realized in MARSSx86 ?* > > I didn't find the relevant realization in the ptlsim source code. > > So I tried the Qemu code. > According to the comments in the "sim_cpu_exec" function, "do_interrupt" > function simulates a real cpu exception. > "do_interrupt" function that is realized in /qemu/target-i386/op_helper.c. > Its comments said that this function is to begin execution of an > interruption. So I captured the parameter "intno" of the "do_interrupt" > function once it is called. > > But the value of this parameter was obvioulsy wrong compared with the > system call Linux actually called. When the system is busy, the "intno" > (interrupt NO.) may be 14, 7, 62, etc, even though the system is busy on > reading files. If the system is free, the value is 239. > > Any one have any ideas? > > Thanks very much. > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel > >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
