X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2Fstg%2FMachRegs.h;h=6b1d31986bdd75c3d6d754434e9d0b2d85738b38;hb=febf1ced754a3996ac1a5877dcded87828560d1c;hp=cd9866671c4d37fdf0901394437d220b4b160e41;hpb=d20d32d788e2d6c088e6b03776c428df5bb004d3;p=ghc-hetmet.git diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h index cd98666..6b1d319 100644 --- a/includes/stg/MachRegs.h +++ b/includes/stg/MachRegs.h @@ -67,6 +67,11 @@ Caller-saves regs have to be saved around C-calls made from STG land, so this file defines CALLER_SAVES_ for each that is designated caller-saves in that machine's C calling convention. + + As it stands, the only registers that are ever marked caller saves + are the RX, FX, DX and USER registers; as a result, if you + decide to caller save a system register (e.g. SP, HP, etc), note that + this code path is completely untested! -- EZY -------------------------------------------------------------------------- */ /* -----------------------------------------------------------------------------