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