From 4cbd21753299e5c119af283aa49443a47d7a72fb Mon Sep 17 00:00:00 2001 From: bxing Date: Sat, 10 Jun 2006 07:16:11 +0000 Subject: 1. Updated SetJump() and LongJump() for IPF 2. Added assertion for SetJump() for all architectures 3. Added CpuSleep() for IPF git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@464 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/SwitchStack.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MdePkg/Library/BaseLib/SwitchStack.c') diff --git a/MdePkg/Library/BaseLib/SwitchStack.c b/MdePkg/Library/BaseLib/SwitchStack.c index fec3cfaa60..353efa8f6e 100644 --- a/MdePkg/Library/BaseLib/SwitchStack.c +++ b/MdePkg/Library/BaseLib/SwitchStack.c @@ -47,5 +47,9 @@ SwitchStack ( { ASSERT (EntryPoint != NULL && NewStack != NULL); +#ifdef MDE_CPU_IPF + ASSERT (((UINTN)NewStack & 0xf) == 0); +#endif + InternalSwitchStack (EntryPoint, Context1, Context2, NewStack); } -- cgit v1.2.3