2006-05-19 04:38:56 +02:00
|
|
|
/*++
|
|
|
|
|
2006-07-17 05:33:40 +02:00
|
|
|
Copyright (c) 1999-2006 Intel Corporation. All rights reserved
|
|
|
|
This program and the accompanying materials 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
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2006-05-19 04:38:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
Module Name:
|
2006-07-17 05:33:40 +02:00
|
|
|
|
2006-05-19 04:38:56 +02:00
|
|
|
SecApResetVectorFixup.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Definitions for the SecApResetVectorFixup utility.
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#ifndef _SEC_AP_RESET_VECTOR_FIXUP_H
|
|
|
|
#define _SEC_AP_RESET_VECTOR_FIXUP_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2006-06-16 13:42:42 +02:00
|
|
|
|
|
|
|
#include <Common/UefiBaseTypes.h>
|
|
|
|
#include <Common/EfiImage.h>
|
|
|
|
#include <Common/FirmwareVolumeImageFormat.h>
|
|
|
|
#include <Common/FirmwareFileSystem.h>
|
|
|
|
#include <Common/FirmwareVolumeHeader.h>
|
|
|
|
|
2006-05-19 04:38:56 +02:00
|
|
|
#include "EfiUtilityMsgs.c"
|
|
|
|
#include "CommonLib.h"
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Utility Name
|
|
|
|
//
|
|
|
|
#define UTILITY_NAME "SecApResetVectorFixup"
|
|
|
|
|
|
|
|
//
|
|
|
|
// Utility version information
|
|
|
|
//
|
|
|
|
#define UTILITY_MAJOR_VERSION 0
|
|
|
|
#define UTILITY_MINOR_VERSION 1
|
|
|
|
#define UTILITY_DATE __DATE__
|
|
|
|
|
|
|
|
//
|
|
|
|
// The maximum number of arguments accepted from the command line.
|
|
|
|
//
|
|
|
|
#define MAX_ARGS 3
|
|
|
|
#define BUF_SIZE (8 * 1024)
|
|
|
|
|
|
|
|
#define GETOCCUPIEDSIZE(ActualSize, Alignment) \
|
|
|
|
(ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1))
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
PrintUtilityInfo (
|
|
|
|
VOID
|
|
|
|
)
|
|
|
|
/*++
|
|
|
|
|
|
|
|
Routine Description:
|
|
|
|
|
|
|
|
Displays the standard utility information to SDTOUT
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
--*/
|
|
|
|
;
|
|
|
|
|
|
|
|
VOID
|
|
|
|
PrintUsage (
|
|
|
|
VOID
|
|
|
|
)
|
|
|
|
/*++
|
|
|
|
|
|
|
|
Routine Description:
|
|
|
|
|
|
|
|
Displays the utility usage syntax to STDOUT
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
--*/
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|