mirror of https://github.com/acidanthera/audk.git
Update EBC sub-dir of BaseLib according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6198 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
000f6a288d
commit
76d9959482
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Base Library CPU Functions for EBC
|
Base Library CPU Functions for EBC
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2008, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -54,8 +54,6 @@ MemoryFence (
|
||||||
/**
|
/**
|
||||||
Disables CPU interrupts.
|
Disables CPU interrupts.
|
||||||
|
|
||||||
Disables CPU interrupts.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -69,8 +67,6 @@ DisableInterrupts (
|
||||||
/**
|
/**
|
||||||
Enables CPU interrupts.
|
Enables CPU interrupts.
|
||||||
|
|
||||||
Enables CPU interrupts.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -105,9 +101,6 @@ GetInterruptState (
|
||||||
Enables CPU interrupts for the smallest window required to capture any
|
Enables CPU interrupts for the smallest window required to capture any
|
||||||
pending interrupts.
|
pending interrupts.
|
||||||
|
|
||||||
Enables CPU interrupts for the smallest window required to capture any
|
|
||||||
pending interrupts.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
/** @file
|
/** @file
|
||||||
Switch Stack functions.
|
Implementation of SetJump() and LongJump() on EBC.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
SetJump() and LongJump() are not currently supported for the EBC processor type.
|
||||||
|
Implementation for EBC just returns 0 for SetJump(), and ASSERT() for LongJump().
|
||||||
|
|
||||||
|
Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -14,23 +17,6 @@
|
||||||
|
|
||||||
#include <BaseLibInternals.h>
|
#include <BaseLibInternals.h>
|
||||||
|
|
||||||
/**
|
|
||||||
Worker function that checks ASSERT condition for JumpBuffer
|
|
||||||
|
|
||||||
Checks ASSERT condition for JumpBuffer.
|
|
||||||
|
|
||||||
If JumpBuffer is NULL, then ASSERT().
|
|
||||||
For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().
|
|
||||||
|
|
||||||
@param JumpBuffer A pointer to CPU context buffer.
|
|
||||||
|
|
||||||
**/
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
InternalAssertJumpBuffer (
|
|
||||||
IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Saves the current CPU context that can be restored with a call to LongJump() and returns 0.
|
Saves the current CPU context that can be restored with a call to LongJump() and returns 0.
|
||||||
|
|
||||||
|
@ -59,7 +45,7 @@ SetJump (
|
||||||
|
|
||||||
Restores the CPU context from the buffer specified by JumpBuffer.
|
Restores the CPU context from the buffer specified by JumpBuffer.
|
||||||
This function never returns to the caller.
|
This function never returns to the caller.
|
||||||
Instead is resumes execution based on the state of JumpBuffer.
|
Instead it resumes execution based on the state of JumpBuffer.
|
||||||
|
|
||||||
@param JumpBuffer A pointer to CPU context buffer.
|
@param JumpBuffer A pointer to CPU context buffer.
|
||||||
@param Value The value to return when the SetJump() context is restored.
|
@param Value The value to return when the SetJump() context is restored.
|
||||||
|
|
Loading…
Reference in New Issue