diff options
author | Richard Henderson <rth@twiddle.net> | 2011-04-22 06:48:21 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2011-04-22 06:48:21 -0700 |
commit | 71b4db6096ad4f82bb297f2419e83301a41b0f95 (patch) | |
tree | 39ed29b150834cecbce25b41ad8f5eeb34f49d00 | |
parent | 2eec0e49ac23330ed8a866a4b3f268be4af09e34 (diff) | |
download | qemu-palcode-71b4db6096ad4f82bb297f2419e83301a41b0f95.tar.gz |
Implement WTINT.
-rw-r--r-- | pal.S | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -88,6 +88,7 @@ /* QEMU function calls, via mtpr. */ #define qemu_tbia 255 #define qemu_tbis 254 +#define qemu_wait 253 /* PALcode uses of the private storage slots. */ #define ptEntUna pt0 @@ -1258,18 +1259,16 @@ ENDFN CallPal_RetSys * * INPUT PARAMETERS: * - * ??? + * r16 (a0) = Maximum number of clock ticks to skip * * OUTPUT PARAMETERS: * - * ??? - * - * SIDE EFFECTS: - * - * ??? + * r0 (v0) = Number of clock ticks actually skipped. */ ORG_CALL_PAL_PRIV(0x3E) CallPal_WtInt: + mtpr $31, qemu_wait + mov 0, v0 hw_rei ENDFN CallPal_WtInt |