osResetType
System reboot types
#include <ultra64.h> /* ultra64.h */ s32 osResetType;
Operation differs slightly depending on the type of system reboot. With a cold start (initialize by turning power on), cache is simply disabled and RDRAM is configured. With a hot start (initialize by pressing Reset), cache is disabled after being flushed, and RDRAM remains unchanged. From this point, both kinds of system reboots continue in the same way by copying the first 1Mbyte of ROM to the 1Mbyte following the boot address in RDRAM, clearing the BSS relating to the boot segment, and calling the boot procedure. However, you should use the osResetType variable because it is possible to make an incorrect judgement if you try to distinguish between the two kinds of system reboots by checking beyond the first 1Mbyte of RDRAM.
1999/06/15 Completely revised