blob: 1e7c0fba7597eb9d210aef4556d772286558fa00 [file] [log] [blame]
sewardja8d8e232005-06-07 20:04:56 +00001
2This module handles the complex business of handing system calls off
3to the host and then fixing up the guest state accordingly. It
4interacts complicatedly with signals and to a less extent threads.
5
6There are some important caveats regarding how to write the PRE and
7POST wrappers for syscalls. It is important to observe these, else
8you will have to track down almost impossibly obscure bugs. These
njnc1b01812005-06-17 22:19:06 +00009caveats are described in comments at the top of syswrap-main.c.
sewardja8d8e232005-06-07 20:04:56 +000010
njnc1b01812005-06-17 22:19:06 +000011The main file is syswrap-main.c. It contains all the driver logic
sewardja8d8e232005-06-07 20:04:56 +000012and a great deal of commentary. The wrappers themselves live in
njnc1b01812005-06-17 22:19:06 +000013syswrap-generic.c, syswrap-${OS}.c and syswrap-${PLATFORM}.c.
sewardja8d8e232005-06-07 20:04:56 +000014