00583 :
00584
00585 This function
is called to set
the 32-bit value of a
register in
the
00586 specified exception or trap frame.
00587
00588 Arguments:
00589
00590 Register - Supplies
the number of
the register whose value
is to be
00591 stored. Integer registers are specified as 0 - 31 and floating
00592 registers are specified as 32 - 63.
00593
00594 Value - Supplies
the value to be stored in
the specified
register.
00595
00596 ExceptionFrame - Supplies a pointer to an exception frame.
00597
00598 TrapFrame - Supplies a pointer to a trap frame.
00599
00600 Return Value:
00601
00602 None.
00603
00604 --*/
00605
00606 {
00607
00608
00609
00610
00611
00612
if (Register < 32) {
00613 (&TrapFrame->XIntZero)[Register] = (LONG)Value;
00614
00615 }
else {
00616
switch (Register) {
00617
00618
00619
00620
00621
00622
case 32:
00623 TrapFrame->FltF0 = Value;
00624
return;
00625
00626
00627
00628
00629
00630
case 33:
00631 TrapFrame->FltF1 = Value;
00632
return;
00633
00634
00635
00636
00637
00638
case 34:
00639 TrapFrame->FltF2 = Value;
00640
return;
00641
00642
00643
00644
00645
00646
case 35:
00647 TrapFrame->FltF3 = Value;
00648
return;
00649
00650
00651
00652
00653
00654
case 36:
00655 TrapFrame->FltF4 = Value;
00656
return;
00657
00658
00659
00660
00661
00662
case 37:
00663 TrapFrame->FltF5 = Value;
00664
return;
00665
00666
00667
00668
00669
00670
case 38:
00671 TrapFrame->FltF6 = Value;
00672
return;
00673
00674
00675
00676
00677
00678
case 39:
00679 TrapFrame->FltF7 = Value;
00680
return;
00681
00682
00683
00684
00685
00686
case 40:
00687 TrapFrame->FltF8 = Value;
00688
return;
00689
00690
00691
00692
00693
00694
case 41:
00695 TrapFrame->FltF9 = Value;
00696
return;
00697
00698
00699
00700
00701
00702
case 42:
00703 TrapFrame->FltF10 = Value;
00704
return;
00705
00706
00707
00708
00709
00710
case 43:
00711 TrapFrame->FltF11 = Value;
00712
return;
00713
00714
00715
00716
00717
00718
case 44:
00719 TrapFrame->FltF12 = Value;
00720
return;
00721
00722
00723
00724
00725
00726
case 45:
00727 TrapFrame->FltF13 = Value;
00728
return;
00729
00730
00731
00732
00733
00734
case 46:
00735 TrapFrame->FltF14 = Value;
00736
return;
00737
00738
00739
00740
00741
00742
case 47:
00743 TrapFrame->FltF15 = Value;
00744
return;
00745
00746
00747
00748
00749
00750
case 48:
00751 TrapFrame->FltF16 = Value;
00752
return;
00753
00754
00755
00756
00757
00758
case 49:
00759 TrapFrame->FltF17 = Value;
00760
return;
00761
00762
00763
00764
00765
00766
case 50:
00767 TrapFrame->FltF18 = Value;
00768
return;
00769
00770
00771
00772
00773
00774
case 51:
00775 TrapFrame->FltF19 = Value;
00776
return;
00777
00778
00779
00780
00781
00782
case 52:
00783 ExceptionFrame->FltF20 = Value;
00784
return;
00785
00786
00787
00788
00789
00790
case 53:
00791 ExceptionFrame->FltF21 = Value;
00792
return;
00793
00794
00795
00796
00797
00798
case 54:
00799 ExceptionFrame->FltF22 = Value;
00800
return;
00801
00802
00803
00804
00805
00806
case 55:
00807 ExceptionFrame->FltF23 = Value;
00808
return;
00809
00810
00811
00812
00813
00814
case 56:
00815 ExceptionFrame->FltF24 = Value;
00816
return;
00817
00818
00819
00820
00821
00822
case 57:
00823 ExceptionFrame->FltF25 = Value;
00824
return;
00825
00826
00827
00828
00829
00830
case 58:
00831 ExceptionFrame->FltF26 = Value;
00832
return;
00833
00834
00835
00836
00837
00838
case 59:
00839 ExceptionFrame->FltF27 = Value;
00840
return;
00841
00842
00843
00844
00845
00846
case 60:
00847 ExceptionFrame->FltF28 = Value;
00848
return;
00849
00850
00851
00852
00853
00854
case 61:
00855 ExceptionFrame->FltF29 = Value;
00856
return;
00857
00858
00859
00860
00861
00862
case 62:
00863 ExceptionFrame->FltF30 = Value;
00864
return;
00865
00866
00867
00868
00869
00870
case 63:
00871 ExceptionFrame->FltF31 = Value;
00872
return;
00873 }
00874 }
00875 }