AGESA F15: AMD family15 AGESA code
[coreboot.git] / src / vendorcode / amd / agesa / f15 / Proc / CPU / Family / 0x10 / RevD / F10MicrocodePatch010000d9.c
1 /* $NoKeywords:$ */
2 /**
3  * @file
4  *
5  * AMD Family_10 Microcode patch.
6  *
7  * Fam10 Microcode Patch rev 010000D9 for 1081 or equivalent.
8  *
9  * @xrefitem bom "File Content Label" "Release Content"
10  * @e project:      AGESA
11  * @e sub-project:  CPU/Family/0x10/RevD
12  * @e \$Revision: 60726 $   @e \$Date: 2011-10-20 17:08:02 -0600 (Thu, 20 Oct 2011) $
13  */
14 /*****************************************************************************
15  *
16  * Copyright 2008 - 2012 ADVANCED MICRO DEVICES, INC.  All Rights Reserved.
17  *
18  * AMD is granting you permission to use this software (the Materials)
19  * pursuant to the terms and conditions of your Software License Agreement
20  * with AMD.  This header does *NOT* give you permission to use the Materials
21  * or any rights under AMD's intellectual property.  Your use of any portion
22  * of these Materials shall constitute your acceptance of those terms and
23  * conditions.  If you do not agree to the terms and conditions of the Software
24  * License Agreement, please do not use any portion of these Materials.
25  *
26  * CONFIDENTIALITY:  The Materials and all other information, identified as
27  * confidential and provided to you by AMD shall be kept confidential in
28  * accordance with the terms and conditions of the Software License Agreement.
29  *
30  * LIMITATION OF LIABILITY: THE MATERIALS AND ANY OTHER RELATED INFORMATION
31  * PROVIDED TO YOU BY AMD ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED
32  * WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
33  * MERCHANTABILITY, NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR PURPOSE,
34  * OR WARRANTIES ARISING FROM CONDUCT, COURSE OF DEALING, OR USAGE OF TRADE.
35  * IN NO EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES WHATSOEVER
36  * (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS
37  * INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF AMD'S NEGLIGENCE,
38  * GROSS NEGLIGENCE, THE USE OF OR INABILITY TO USE THE MATERIALS OR ANY OTHER
39  * RELATED INFORMATION PROVIDED TO YOU BY AMD, EVEN IF AMD HAS BEEN ADVISED OF
40  * THE POSSIBILITY OF SUCH DAMAGES.  BECAUSE SOME JURISDICTIONS PROHIBIT THE
41  * EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES,
42  * THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
43  *
44  * AMD does not assume any responsibility for any errors which may appear in
45  * the Materials or any other related information provided to you by AMD, or
46  * result from use of the Materials or any related information.
47  *
48  * You agree that you will not reverse engineer or decompile the Materials.
49  *
50  * NO SUPPORT OBLIGATION: AMD is not obligated to furnish, support, or make any
51  * further information, software, technical information, know-how, or show-how
52  * available to you.  Additionally, AMD retains the right to modify the
53  * Materials at any time, without notice, and is not obligated to provide such
54  * modified Materials to you.
55  *
56  * U.S. GOVERNMENT RESTRICTED RIGHTS: The Materials are provided with
57  * "RESTRICTED RIGHTS." Use, duplication, or disclosure by the Government is
58  * subject to the restrictions as set forth in FAR 52.227-14 and
59  * DFAR252.227-7013, et seq., or its successor.  Use of the Materials by the
60  * Government constitutes acknowledgement of AMD's proprietary rights in them.
61  *
62  * EXPORT ASSURANCE:  You agree and certify that neither the Materials, nor any
63  * direct product thereof will be exported directly or indirectly, into any
64  * country prohibited by the United States Export Administration Act and the
65  * regulations thereunder, without the required authorization from the U.S.
66  * government nor will be used for any purpose prohibited by the same.
67  *
68  ***************************************************************************/
69
70
71
72 /*----------------------------------------------------------------------------------------
73  *                             M O D U L E S    U S E D
74  *----------------------------------------------------------------------------------------
75  */
76 #include "AGESA.h"
77 #include "cpuRegisters.h"
78 #include "cpuEarlyInit.h"
79 CODE_GROUP (G1_PEICC)
80 RDATA_GROUP (G2_PEI)
81
82 /*----------------------------------------------------------------------------------------
83  *                   D E F I N I T I O N S    A N D    M A C R O S
84  *----------------------------------------------------------------------------------------
85  */
86
87 /*----------------------------------------------------------------------------------------
88  *                  T Y P E D E F S     A N D     S T R U C T U R E S
89  *----------------------------------------------------------------------------------------
90  */
91
92
93 // Patch code 010000d9 for 1081 and equivalent
94 CONST MICROCODE_PATCHES ROMDATA CpuF10MicrocodePatch010000d9 =
95 {{
96   0x11,
97   0x20,
98   0x12,
99   0x10,
100   0xd9,
101   0x00,
102   0x00,
103   0x01,
104   0x00,
105   0x80,
106   0x20,
107   0x00,
108   0x6e,
109   0x87,
110   0xd2,
111   0xea,
112   0x00,
113   0x00,
114   0x00,
115   0x00,
116   0x00,
117   0x00,
118   0x00,
119   0x00,
120   0x81,
121   0x10,
122   0x00,
123   0x00,
124   0x00,
125   0xaa,
126   0xaa,
127   0xaa,
128   0xa7,
129   0x0b,
130   0x00,
131   0x00,
132   0x14,
133   0x0c,
134   0x00,
135   0x00,
136   0x55,
137   0x03,
138   0x00,
139   0x00,
140   0x08,
141   0x0a,
142   0x00,
143   0x00,
144   0x51,
145   0x03,
146   0x00,
147   0x00,
148   0x0c,
149   0x0e,
150   0x00,
151   0x00,
152   0xc4,
153   0x07,
154   0x00,
155   0x00,
156   0x9a,
157   0x0b,
158   0x00,
159   0x00,
160   0x4f,
161   0xdf,
162   0x38,
163   0x00,
164   0x81,
165   0x3f,
166   0x20,
167   0xc0,
168   0x4e,
169   0xf0,
170   0xff,
171   0xbf,
172   0x0f,
173   0xff,
174   0x5e,
175   0x3f,
176   0xf0,
177   0xdf,
178   0xad,
179   0x07,
180   0x3d,
181   0xf8,
182   0x7b,
183   0x7b,
184   0x80,
185   0x00,
186   0xd4,
187   0x00,
188   0x13,
189   0xf1,
190   0xff,
191   0xff,
192   0xac,
193   0xe1,
194   0x1f,
195   0xe0,
196   0x4e,
197   0xfe,
198   0xbb,
199   0xff,
200   0xfe,
201   0x87,
202   0x7f,
203   0xa7,
204   0x03,
205   0xf8,
206   0x7f,
207   0xd6,
208   0x7c,
209   0x1e,
210   0xfa,
211   0xbd,
212   0x00,
213   0xe0,
214   0xff,
215   0x7b,
216   0x0e,
217   0x00,
218   0x3d,
219   0x57,
220   0xe0,
221   0x73,
222   0xd0,
223   0x0f,
224   0xff,
225   0x2e,
226   0xfe,
227   0xff,
228   0xc0,
229   0xcf,
230   0xc3,
231   0x3f,
232   0xeb,
233   0x01,
234   0xfc,
235   0x77,
236   0x5a,
237   0x3e,
238   0x0f,
239   0xfd,
240   0x35,
241   0x00,
242   0x90,
243   0x3e,
244   0xff,
245   0x9f,
246   0x00,
247   0xfe,
248   0x65,
249   0x60,
250   0x75,
251   0xf8,
252   0x9f,
253   0xff,
254   0x97,
255   0xff,
256   0x1f,
257   0xe0,
258   0xe7,
259   0xe1,
260   0x03,
261   0xf5,
262   0xde,
263   0xff,
264   0x7e,
265   0x2c,
266   0x9f,
267   0x87,
268   0xff,
269   0x1e,
270   0x00,
271   0xf8,
272   0x6f,
273   0x95,
274   0x03,
275   0x50,
276   0xf4,
277   0x03,
278   0xf8,
279   0x1c,
280   0x7f,
281   0xe0,
282   0x1f,
283   0xc0,
284   0xf0,
285   0x0f,
286   0xe0,
287   0xdf,
288   0xff,
289   0x81,
290   0x7f,
291   0x00,
292   0xc3,
293   0x3f,
294   0x80,
295   0x7f,
296   0x3c,
297   0x40,
298   0x0d,
299   0x00,
300   0x00,
301   0xff,
302   0xff,
303   0x07,
304   0x1f,
305   0xde,
306   0x9d,
307   0x90,
308   0xc4,
309   0xff,
310   0xff,
311   0x5f,
312   0x72,
313   0xf8,
314   0x23,
315   0xca,
316   0x80,
317   0xff,
318   0xc0,
319   0x3f,
320   0xbf,
321   0xe1,
322   0x1f,
323   0xc0,
324   0x00,
325   0xfa,
326   0xbf,
327   0x07,
328   0x00,
329   0xbc,
330   0x63,
331   0xe2,
332   0x86,
333   0x0e,
334   0xf8,
335   0x00,
336   0xe7,
337   0xf0,
338   0x5f,
339   0xf9,
340   0xb8,
341   0x3c,
342   0xec,
343   0x73,
344   0x9f,
345   0xc2,
346   0xff,
347   0xe6,
348   0xe1,
349   0xf2,
350   0xb0,
351   0xcf,
352   0x03,
353   0x00,
354   0x0d,
355   0x50,
356   0xff,
357   0x1e,
358   0xfe,
359   0x2b,
360   0x0f,
361   0x97,
362   0x87,
363   0x7d,
364   0xfc,
365   0x5b,
366   0xf8,
367   0xdf,
368   0x2d,
369   0x5c,
370   0x1e,
371   0xf6,
372   0xf3,
373   0x6f,
374   0xe1,
375   0x3f,
376   0xb7,
377   0x70,
378   0x79,
379   0xd8,
380   0xab,
381   0x01,
382   0x80,
383   0x06,
384   0xff,
385   0xff,
386   0x00,
387   0xfd,
388   0xbb,
389   0x14,
390   0xf2,
391   0xc3,
392   0x2f,
393   0xf8,
394   0x13,
395   0xcc,
396   0x7f,
397   0x0c,
398   0xb8,
399   0x0e,
400   0x74,
401   0xf5,
402   0x03,
403   0xf0,
404   0xf8,
405   0x33,
406   0x03,
407   0x1c,
408   0x2b,
409   0xd7,
410   0x00,
411   0x00,
412   0xeb,
413   0xe5,
414   0x1f,
415   0x80,
416   0xc0,
417   0x1f,
418   0x1b,
419   0xe0,
420   0x9e,
421   0x9b,
422   0x7f,
423   0x00,
424   0x03,
425   0x7f,
426   0x6c,
427   0x80,
428   0xf8,
429   0x7d,
430   0xfe,
431   0x01,
432   0x0e,
433   0xfc,
434   0xb1,
435   0x01,
436   0x80,
437   0xd7,
438   0x62,
439   0x00,
440   0xc0,
441   0x9b,
442   0x53,
443   0x0e,
444   0x75,
445   0xe0,
446   0x0f,
447   0xe8,
448   0x2f,
449   0xff,
450   0xa7,
451   0xff,
452   0xcf,
453   0xc3,
454   0x3f,
455   0xc0,
456   0xbd,
457   0xff,
458   0x07,
459   0xea,
460   0x3e,
461   0x0f,
462   0xfd,
463   0x54,
464   0x00,
465   0x20,
466   0x1f,
467   0x32,
468   0x1f,
469   0xa0,
470   0xff,
471   0xff,
472   0x22,
473   0x3f,
474   0x78,
475   0x77,
476   0x3f,
477   0x80,
478   0xff,
479   0xe7,
480   0x8b,
481   0xfe,
482   0xe0,
483   0x5b,
484   0xff,
485   0x4d,
486   0x0e,
487   0xf8,
488   0x80,
489   0x9f,
490   0x87,
491   0x7f,
492   0x19,
493   0x00,
494   0x90,
495   0x00,
496   0xe0,
497   0x7f,
498   0x02,
499   0x00,
500   0x03,
501   0xfc,
502   0x3c,
503   0xfc,
504   0xeb,
505   0xff,
506   0xca,
507   0xff,
508   0x0f,
509   0xf0,
510   0xf3,
511   0xf0,
512   0x04,
513   0xfe,
514   0x04,
515   0x4c,
516   0x2f,
517   0x03,
518   0xad,
519   0xc3,
520   0xa0,
521   0x0c,
522   0x00,
523   0xe8,
524   0x22,
525   0xf0,
526   0x27,
527   0x90,
528   0xfe,
529   0x18,
530   0x64,
531   0x1d,
532   0xff,
533   0xe3,
534   0xff,
535   0xe4,
536   0xf8,
537   0x07,
538   0xf8,
539   0x79,
540   0xff,
541   0x40,
542   0xbd,
543   0xf3,
544   0xa1,
545   0x9f,
546   0xca,
547   0xe7,
548   0xc8,
549   0x48,
550   0x06,
551   0x00,
552   0xbc,
553   0x61,
554   0xe5,
555   0x00,
556   0x07,
557   0xfe,
558   0x80,
559   0x5e,
560   0xc2,
561   0xff,
562   0xff,
563   0x6f,
564   0x3c,
565   0xfc,
566   0x03,
567   0xfc,
568   0xc9,
569   0xf7,
570   0xff,
571   0xbf,
572   0x7d,
573   0xf0,
574   0xcf,
575   0x74,
576   0x00,
577   0x14,
578   0x50,
579   0x03,
580   0x4d,
581   0x02,
582   0x00,
583   0xfe,
584   0xfe,
585   0x83,
586   0x7f,
587   0xa6,
588   0x6b,
589   0xf9,
590   0x6f,
591   0xfe,
592   0xee,
593   0x0f,
594   0xfe,
595   0xb1,
596   0xef,
597   0xe4,
598   0xbf,
599   0xf9,
600   0xba,
601   0x3f,
602   0xf8,
603   0x77,
604   0x01,
605   0x80,
606   0xff,
607   0xef,
608   0x3f,
609   0x00,
610   0xdf,
611   0xdf,
612   0x36,
613   0xc0,
614   0x81,
615   0x3f,
616   0xff,
617   0xa3,
618   0xdc,
619   0xf4,
620   0x00,
621   0x3f,
622   0x0f,
623   0xff,
624   0xf8,
625   0x07,
626   0xf0,
627   0x1f,
628   0x03,
629   0xf8,
630   0x37,
631   0xfc,
632   0xc5,
633   0x00,
634   0x80,
635   0x63,
636   0x67,
637   0x3c,
638   0x80,
639   0xff,
640   0x1f,
641   0xca,
642   0xe7,
643   0xa1,
644   0x9b,
645   0x71,
646   0x00,
647   0xf6,
648   0x7e,
649   0x28,
650   0x9f,
651   0x87,
652   0x5f,
653   0xc6,
654   0x01,
655   0xb8,
656   0xfa,
657   0xa1,
658   0x7c,
659   0x1e,
660   0xa0,
661   0x64,
662   0x00,
663   0x60,
664   0x99,
665   0x80,
666   0x3f,
667   0xc1,
668   0xf0,
669   0xcb,
670   0x40,
671   0xeb,
672   0xff,
673   0x9d,
674   0x7f,
675   0x3f,
676   0xc3,
677   0xbe,
678   0x87,
679   0xdd,
680   0xfc,
681   0x67,
682   0xfe,
683   0xf9,
684   0x0f,
685   0xfb,
686   0x16,
687   0x76,
688   0xf0,
689   0xff,
690   0x3b,
691   0x00,
692   0xf4,
693   0x82,
694   0xff,
695   0x5f,
696   0x79,
697   0xf8,
698   0xd7,
699   0xfa,
700   0x80,
701   0xff,
702   0x6c,
703   0x3d,
704   0xe0,
705   0xc1,
706   0x9f,
707   0x18,
708   0x00,
709   0x86,
710   0xbe,
711   0x71,
712   0xaf,
713   0x07,
714   0x7f,
715   0x40,
716   0x00,
717   0xf8,
718   0xff,
719   0x1e,
720   0x0f,
721   0x20,
722   0xfe,
723   0xff,
724   0x21,
725   0x3f,
726   0xbc,
727   0x63,
728   0x1f,
729   0xc0,
730   0x7f,
731   0xe0,
732   0xe0,
733   0xdf,
734   0xf0,
735   0x0f,
736   0x7f,
737   0x00,
738   0xff,
739   0x81,
740   0x80,
741   0x7f,
742   0xc3,
743   0x3f,
744   0x0f,
745   0x00,
746   0xfc,
747   0x7f,
748   0xff,
749   0x67,
750   0xf1,
751   0xff,
752   0x00,
753   0xb6,
754   0x1c,
755   0xfe,
756   0xff,
757   0xff,
758   0xc5,
759   0xff,
760   0xf7,
761   0xfa,
762   0x7f,
763   0xf8,
764   0xec,
765   0xbf,
766   0x97,
767   0xff,
768   0xdf,
769   0xab,
770   0xfa,
771   0xe1,
772   0xbf,
773   0x07,
774   0x00,
775   0xfe,
776   0x67,
777   0xeb,
778   0x00,
779   0xec,
780   0xfe,
781   0xc4,
782   0x00,
783   0x0f,
784   0xff,
785   0xff,
786   0xcf,
787   0x02,
788   0xfc,
789   0x63,
790   0xdd,
791   0x3f,
792   0xff,
793   0xf7,
794   0x5f,
795   0xcb,
796   0xf0,
797   0x8e,
798   0x55,
799   0xff,
800   0xff,
801   0xdf,
802   0x03,
803   0x00,
804   0xfe,
805   0xb7,
806   0xff,
807   0x58,
808   0x87,
809   0x3f,
810   0xac,
811   0x2c,
812   0x39,
813   0xe0,
814   0xff,
815   0x17,
816   0x1e,
817   0xfe,
818   0x01,
819   0x7e,
820   0xe0,
821   0xbf,
822   0x18,
823   0x0f,
824   0x3a,
825   0xf0,
826   0x27,
827   0xf6,
828   0x80,
829   0xff,
830   0xef,
831   0x01,
832   0xa2,
833   0x6b,
834   0xfc,
835   0xff,
836   0xcf,
837   0xc3,
838   0x3f,
839   0xd1,
840   0xb3,
841   0x8c,
842   0xff,
843   0xff,
844   0xd7,
845   0x0f,
846   0xff,
847   0x58,
848   0xff,
849   0x32,
850   0xfe,
851   0xff,
852   0x5d,
853   0x3f,
854   0xfc,
855   0x7b,
856   0x00,
857   0xc0,
858   0xff,
859   0xf7,
860   0x3d,
861   0x80,
862   0xff,
863   0x6d,
864   0x18,
865   0xe0,
866   0xc1,
867   0x9f,
868   0xff,
869   0x00,
870   0xfe,
871   0xb3,
872   0x2d,
873   0xfa,
874   0x87,
875   0x6f,
876   0xff,
877   0x27,
878   0xf8,
879   0xff,
880   0x19,
881   0x6c,
882   0x1d,
883   0x7e,
884   0x24,
885   0x00,
886   0xc0,
887   0x00,
888   0xff,
889   0xbf,
890   0xcb,
891   0xf8,
892   0x0f,
893   0x70,
894   0xd6,
895   0xf0,
896   0xdd,
897   0x7f,
898   0x2d,
899   0xff,
900   0xbf,
901   0xd6,
902   0xff,
903   0xc3,
904   0x7f,
905   0xff,
906   0x01,
907   0xfc,
908   0xdf,
909   0x5a,
910   0xf4,
911   0x0f,
912   0xff,
913   0x3d,
914   0x00,
915   0xf0,
916   0x3f,
917   0xf0,
918   0xaf,
919   0xe5,
920   0xf8,
921   0xd5,
922   0xba,
923   0x72,
924   0xff,
925   0x6d,
926   0x3d,
927   0x80,
928   0xa1,
929   0x9f,
930   0xc8,
931   0xe7,
932   0xca,
933   0x07,
934   0xfc,
935   0x09,
936   0x87,
937   0x5f,
938   0x06,
939   0x5b,
940   0xf8,
941   0xff,
942   0x1e,
943   0x00,
944   0xf0,
945   0xbf,
946   0xad,
947   0x07,
948   0x3c,
949   0xf8,
950   0x13,
951   0x03,
952   0xc0,
953   0x7f,
954   0xe0,
955   0x1f,
956   0xff,
957   0xf0,
958   0xad,
959   0x45,
960   0x04,
961   0xe6,
962   0x03,
963   0xfe,
964   0xad,
965   0xc3,
966   0x2f,
967   0x83,
968   0x00,
969   0x0c,
970   0x80,
971   0x04,
972   0x01,
973   0x58,
974   0xe0,
975   0xc6,
976   0x01,
977   0x1e,
978   0xfc,
979   0x01,
980   0x1f,
981   0x40,
982   0xfc,
983   0xff,
984   0x42,
985   0x7e,
986   0x78,
987   0xe7,
988   0x7f,
989   0x82,
990   0x1d,
991   0x07,
992   0x01,
993   0xd7,
994   0xe1,
995   0x8f,
996   0x07,
997   0x00,
998   0xfe,
999   0xbf,
1000   0xfc,
1001   0xbb,
1002   0x00,
1003   0x00,
1004   0x5c,
1005   0xf7,
1006   0x0f,
1007   0xff,
1008   0xf0,
1009   0x9f,
1010   0x32,
1011   0x20,
1012   0x03,
1013   0xfc,
1014   0x3c,
1015   0xfc,
1016   0xff,
1017   0x7f,
1018   0xca,
1019   0xf9,
1020   0x2f,
1021   0x75,
1022   0x7d,
1023   0xf0,
1024   0x5e,
1025   0x03,
1026   0x00,
1027   0x3d,
1028   0xbb,
1029   0xff,
1030   0x52,
1031   0xff,
1032   0x7f,
1033   0xa9,
1034   0x9f,
1035   0x87,
1036   0xff,
1037   0xff,
1038   0x77,
1039   0x79,
1040   0xfe,
1041   0x01,
1042   0x7e,
1043   0x1e,
1044   0xbf,
1045   0xbb,
1046   0x0f,
1047   0xf0,
1048   0xe8,
1049   0x97,
1050   0xf2,
1051   0x79,
1052   0xff,
1053   0xef,
1054   0x01,
1055   0x80,
1056 }};
1057
1058 /*----------------------------------------------------------------------------------------
1059  *           P R O T O T Y P E S     O F     L O C A L     F U N C T I O N S
1060  *----------------------------------------------------------------------------------------
1061  */
1062
1063 /*----------------------------------------------------------------------------------------
1064  *                          E X P O R T E D    F U N C T I O N S
1065  *----------------------------------------------------------------------------------------
1066  */