summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-04-22 06:48:21 -0700
committerRichard Henderson <rth@twiddle.net>2011-04-22 06:48:21 -0700
commit71b4db6096ad4f82bb297f2419e83301a41b0f95 (patch)
tree39ed29b150834cecbce25b41ad8f5eeb34f49d00
parent2eec0e49ac23330ed8a866a4b3f268be4af09e34 (diff)
downloadqemu-palcode-71b4db6096ad4f82bb297f2419e83301a41b0f95.tar.gz
Implement WTINT.
-rw-r--r--pal.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/pal.S b/pal.S
index 6c85c50..dc4aecf 100644
--- a/pal.S
+++ b/pal.S
@@ -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