]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ipf/SwitchStack.s
Current IPF version SwitchStack implementation uses loadrs instruction to restore...
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / SwitchStack.s
index 33f2ed013f6e0e421cf06bf34aa1e65952349b4a..1236bbe947ec8bbcc2c6e2d2b8847ceae29a7547 100644 (file)
@@ -1,7 +1,7 @@
 /// @file\r
 ///  IPF specific SwitchStack() function\r
 ///\r
 /// @file\r
 ///  IPF specific SwitchStack() function\r
 ///\r
-/// Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+/// Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 /// This program and the accompanying materials\r
 /// are licensed and made available under the terms and conditions of the BSD License\r
 /// which accompanies this distribution.  The full text of the license may be found at\r
 /// This program and the accompanying materials\r
 /// are licensed and made available under the terms and conditions of the BSD License\r
 /// which accompanies this distribution.  The full text of the license may be found at\r
@@ -27,7 +27,9 @@ AsmSwitchStackAndBackingStore::
         mov                 r17 = in1\r
         mov                 r18 = in2\r
         and                 r2  = r14, r2\r
         mov                 r17 = in1\r
         mov                 r18 = in2\r
         and                 r2  = r14, r2\r
-\r
+        \r
+        flushrs\r
+        \r
         mov                 ar.rsc = r2\r
         mov                 sp  = in3\r
         mov                 r19 = in4\r
         mov                 ar.rsc = r2\r
         mov                 sp  = in3\r
         mov                 r19 = in4\r