Changeset 25846 in vbox
- Timestamp:
- Jan 14, 2010 9:11:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/vbox-cpuhotplug.dsl
r25817 r25846 121 121 } 122 122 123 // Method to check for the CPU status 124 Method(CPCK, 1) 125 { 126 Store (Arg0, \_SB.CPUC) 127 Return(\_SB.CPUL) 128 } 129 123 130 // Processor object 124 131 // #1463: Showing the CPU can make the guest do bad things on it like SpeedStep. … … 152 159 Method(_STA) // Used for device presence detection 153 160 { 154 IF ( And(\_SB.CPUL, 0x2))161 IF (CPCK(0x01)) 155 162 { 156 163 Return (0xF) … … 178 185 Method(_STA) // Used for device presence detection 179 186 { 180 IF ( And(\_SB.CPUL, 0x4))187 IF (CPCK(0x02)) 181 188 { 182 189 Return (0xF) … … 204 211 Method(_STA) // Used for device presence detection 205 212 { 206 IF ( And(\_SB.CPUL, 0x8))213 IF (CPCK(0x03)) 207 214 { 208 215 Return (0xF) … … 230 237 Method(_STA) // Used for device presence detection 231 238 { 232 IF ( And(\_SB.CPUL, 0x10))239 IF (CPCK(0x04)) 233 240 { 234 241 Return (0xF) … … 256 263 Method(_STA) // Used for device presence detection 257 264 { 258 IF ( And(\_SB.CPUL, 0x20))265 IF (CPCK(0x05)) 259 266 { 260 267 Return (0xF) … … 282 289 Method(_STA) // Used for device presence detection 283 290 { 284 IF ( And(\_SB.CPUL, 0x40))291 IF (CPCK(0x06)) 285 292 { 286 293 Return (0xF) … … 308 315 Method(_STA) // Used for device presence detection 309 316 { 310 IF ( And(\_SB.CPUL, 0x80))317 IF (CPCK(0x07)) 311 318 { 312 319 Return (0xF) … … 334 341 Method(_STA) // Used for device presence detection 335 342 { 336 IF ( And(\_SB.CPUL, 0x100))343 IF (CPCK(0x08)) 337 344 { 338 345 Return (0xF) … … 360 367 Method(_STA) // Used for device presence detection 361 368 { 362 IF ( And(\_SB.CPUL, 0x200))369 IF (CPCK(0x09)) 363 370 { 364 371 Return (0xF) … … 386 393 Method(_STA) // Used for device presence detection 387 394 { 388 IF ( And(\_SB.CPUL, 0x400))395 IF (CPCK(0x0a)) 389 396 { 390 397 Return (0xF) … … 412 419 Method(_STA) // Used for device presence detection 413 420 { 414 IF ( And(\_SB.CPUL, 0x800))421 IF (CPCK(0x0b)) 415 422 { 416 423 Return (0xF) … … 438 445 Method(_STA) // Used for device presence detection 439 446 { 440 IF ( And(\_SB.CPUL, 0x1000))447 IF (CPCK(0x0c)) 441 448 { 442 449 Return (0xF) … … 464 471 Method(_STA) // Used for device presence detection 465 472 { 466 IF ( And(\_SB.CPUL, 0x2000))473 IF (CPCK(0x0d)) 467 474 { 468 475 Return (0xF) … … 490 497 Method(_STA) // Used for device presence detection 491 498 { 492 IF ( And(\_SB.CPUL, 0x4000))499 IF (CPCK(0x0e)) 493 500 { 494 501 Return (0xF) … … 516 523 Method(_STA) // Used for device presence detection 517 524 { 518 IF ( And(\_SB.CPUL, 0x8000))525 IF (CPCK(0x0f)) 519 526 { 520 527 Return (0xF) … … 542 549 Method(_STA) // Used for device presence detection 543 550 { 544 IF ( And(\_SB.CPUL, 0x10000))551 IF (CPCK(0x10)) 545 552 { 546 553 Return (0xF) … … 568 575 Method(_STA) // Used for device presence detection 569 576 { 570 IF ( And(\_SB.CPUL, 0x20000))577 IF (CPCK(0x11)) 571 578 { 572 579 Return (0xF) … … 594 601 Method(_STA) // Used for device presence detection 595 602 { 596 IF ( And(\_SB.CPUL, 0x40000))603 IF (CPCK(0x12)) 597 604 { 598 605 Return (0xF) … … 620 627 Method(_STA) // Used for device presence detection 621 628 { 622 IF ( And(\_SB.CPUL, 0x80000))629 IF (CPCK(0x13)) 623 630 { 624 631 Return (0xF) … … 646 653 Method(_STA) // Used for device presence detection 647 654 { 648 IF ( And(\_SB.CPUL, 0x100000))655 IF (CPCK(0x14)) 649 656 { 650 657 Return (0xF) … … 672 679 Method(_STA) // Used for device presence detection 673 680 { 674 IF ( And(\_SB.CPUL, 0x200000))681 IF (CPCK(0x15)) 675 682 { 676 683 Return (0xF) … … 698 705 Method(_STA) // Used for device presence detection 699 706 { 700 IF ( And(\_SB.CPUL, 0x400000))707 IF (CPCK(0x16)) 701 708 { 702 709 Return (0xF) … … 724 731 Method(_STA) // Used for device presence detection 725 732 { 726 IF ( And(\_SB.CPUL, 0x800000))733 IF (CPCK(0x17)) 727 734 { 728 735 Return (0xF) … … 750 757 Method(_STA) // Used for device presence detection 751 758 { 752 IF ( And(\_SB.CPUL, 0x1000000))759 IF (CPCK(0x18)) 753 760 { 754 761 Return (0xF) … … 776 783 Method(_STA) // Used for device presence detection 777 784 { 778 IF ( And(\_SB.CPUL, 0x2000000))785 IF (CPCK(0x19)) 779 786 { 780 787 Return (0xF) … … 802 809 Method(_STA) // Used for device presence detection 803 810 { 804 IF ( And(\_SB.CPUL, 0x4000000))811 IF (CPCK(0x1a)) 805 812 { 806 813 Return (0xF) … … 828 835 Method(_STA) // Used for device presence detection 829 836 { 830 IF ( And(\_SB.CPUL, 0x8000000))837 IF (CPCK(0x1b)) 831 838 { 832 839 Return (0xF) … … 854 861 Method(_STA) // Used for device presence detection 855 862 { 856 IF ( And(\_SB.CPUL, 0x10000000))863 IF (CPCK(0x1c)) 857 864 { 858 865 Return (0xF) … … 880 887 Method(_STA) // Used for device presence detection 881 888 { 882 IF ( And(\_SB.CPUL, 0x20000000))889 IF (CPCK(0x1d)) 883 890 { 884 891 Return (0xF) … … 906 913 Method(_STA) // Used for device presence detection 907 914 { 908 IF ( And(\_SB.CPUL, 0x40000000))915 IF (CPCK(0x1e)) 909 916 { 910 917 Return (0xF) … … 932 939 Method(_STA) // Used for device presence detection 933 940 { 934 IF ( And(\_SB.CPUL, 0x80000000))941 IF (CPCK(0x1f)) 935 942 { 936 943 Return (0xF) … … 964 971 //} 965 972 966 IF ( And(\_SB.CPUL, 0x2))973 IF (CPCK(0x01)) 967 974 { 968 975 Notify (\_PR.HPL.CPU1, 0x0) 969 976 } 970 IF ( And(\_SB.CPUL, 0x4))977 IF (CPCK(0x02)) 971 978 { 972 979 Notify (\_PR.HPL.CPU2, 0x0) 973 980 } 974 IF ( And(\_SB.CPUL, 0x8))981 IF (CPCK(0x03)) 975 982 { 976 983 Notify (\_PR.HPL.CPU3, 0x0) 977 984 } 978 IF ( And(\_SB.CPUL, 0x10))985 IF (CPCK(0x04)) 979 986 { 980 987 Notify (\_PR.HPL.CPU4, 0x0) 981 988 } 982 IF ( And(\_SB.CPUL, 0x20))989 IF (CPCK(0x05)) 983 990 { 984 991 Notify (\_PR.HPL.CPU5, 0x0) 985 992 } 986 IF ( And(\_SB.CPUL, 0x40))993 IF (CPCK(0x06)) 987 994 { 988 995 Notify (\_PR.HPL.CPU6, 0x0) 989 996 } 990 IF ( And(\_SB.CPUL, 0x80))997 IF (CPCK(0x07)) 991 998 { 992 999 Notify (\_PR.HPL.CPU7, 0x0) 993 1000 } 994 IF ( And(\_SB.CPUL, 0x100))1001 IF (CPCK(0x08)) 995 1002 { 996 1003 Notify (\_PR.HPL.CPU8, 0x0) 997 1004 } 998 IF ( And(\_SB.CPUL, 0x200))1005 IF (CPCK(0x09)) 999 1006 { 1000 1007 Notify (\_PR.HPL.CPU9, 0x0) 1001 1008 } 1002 IF ( And(\_SB.CPUL, 0x400))1009 IF (CPCK(0x0a)) 1003 1010 { 1004 1011 Notify (\_PR.HPL.CPUA, 0x0) 1005 1012 } 1006 IF ( And(\_SB.CPUL, 0x800))1013 IF (CPCK(0x0b)) 1007 1014 { 1008 1015 Notify (\_PR.HPL.CPUB, 0x0) 1009 1016 } 1010 IF ( And(\_SB.CPUL, 0x1000))1017 IF (CPCK(0x0c)) 1011 1018 { 1012 1019 Notify (\_PR.HPL.CPUC, 0x0) 1013 1020 } 1014 IF ( And(\_SB.CPUL, 0x2000))1021 IF (CPCK(0x0d)) 1015 1022 { 1016 1023 Notify (\_PR.HPL.CPUD, 0x0) 1017 1024 } 1018 IF ( And(\_SB.CPUL, 0x4000))1025 IF (CPCK(0x0e)) 1019 1026 { 1020 1027 Notify (\_PR.HPL.CPUE, 0x0) 1021 1028 } 1022 IF ( And(\_SB.CPUL, 0x8000))1029 IF (CPCK(0x0f)) 1023 1030 { 1024 1031 Notify (\_PR.HPL.CPUF, 0x0) 1025 1032 } 1026 IF ( And(\_SB.CPUL, 0x10000))1033 IF (CPCK(0x10)) 1027 1034 { 1028 1035 Notify (\_PR.HPL.CPUG, 0x0) 1029 1036 } 1030 IF ( And(\_SB.CPUL, 0x20000))1037 IF (CPCK(0x11)) 1031 1038 { 1032 1039 Notify (\_PR.HPL.CPUH, 0x0) 1033 1040 } 1034 IF ( And(\_SB.CPUL, 0x40000))1041 IF (CPCK(0x12)) 1035 1042 { 1036 1043 Notify (\_PR.HPL.CPUI, 0x0) 1037 1044 } 1038 IF ( And(\_SB.CPUL, 0x80000))1045 IF (CPCK(0x13)) 1039 1046 { 1040 1047 Notify (\_PR.HPL.CPUJ, 0x0) 1041 1048 } 1042 IF ( And(\_SB.CPUL, 0x100000))1049 IF (CPCK(0x14)) 1043 1050 { 1044 1051 Notify (\_PR.HPL.CPUK, 0x0) 1045 1052 } 1046 IF ( And(\_SB.CPUL, 0x200000))1053 IF (CPCK(0x15)) 1047 1054 { 1048 1055 Notify (\_PR.HPL.CPUL, 0x0) 1049 1056 } 1050 IF ( And(\_SB.CPUL, 0x400000))1057 IF (CPCK(0x16)) 1051 1058 { 1052 1059 Notify (\_PR.HPL.CPUM, 0x0) 1053 1060 } 1054 IF ( And(\_SB.CPUL, 0x800000))1061 IF (CPCK(0x17)) 1055 1062 { 1056 1063 Notify (\_PR.HPL.CPUN, 0x0) 1057 1064 } 1058 IF ( And(\_SB.CPUL, 0x1000000))1065 IF (CPCK(0x18)) 1059 1066 { 1060 1067 Notify (\_PR.HPL.CPUO, 0x0) 1061 1068 } 1062 IF ( And(\_SB.CPUL, 0x2000000))1069 IF (CPCK(0x19)) 1063 1070 { 1064 1071 Notify (\_PR.HPL.CPUP, 0x0) 1065 1072 } 1066 IF ( And(\_SB.CPUL, 0x4000000))1073 IF (CPCK(0x1a)) 1067 1074 { 1068 1075 Notify (\_PR.HPL.CPUQ, 0x0) 1069 1076 } 1070 IF ( And(\_SB.CPUL, 0x8000000))1077 IF (CPCK(0x1b)) 1071 1078 { 1072 1079 Notify (\_PR.HPL.CPUR, 0x0) 1073 1080 } 1074 IF ( And(\_SB.CPUL, 0x10000000))1081 IF (CPCK(0x1c)) 1075 1082 { 1076 1083 Notify (\_PR.HPL.CPUS, 0x0) 1077 1084 } 1078 IF ( And(\_SB.CPUL, 0x20000000))1085 IF (CPCK(0x1d)) 1079 1086 { 1080 1087 Notify (\_PR.HPL.CPUT, 0x0) 1081 1088 } 1082 IF ( And(\_SB.CPUL, 0x40000000))1089 IF (CPCK(0x1e)) 1083 1090 { 1084 1091 Notify (\_PR.HPL.CPUU, 0x0) 1085 1092 } 1086 IF ( And(\_SB.CPUL, 0x80000000))1093 IF (CPCK(0x1f)) 1087 1094 { 1088 1095 Notify (\_PR.HPL.CPUV, 0x0) … … 1115 1122 URTC, 32, 1116 1123 CPUL, 32, 1124 CPUC, 32, 1117 1125 MAAD, 32, 1118 1126 MASZ, 32,
Note:
See TracChangeset
for help on using the changeset viewer.