summaryrefslogtreecommitdiff
path: root/EmbeddedPkg/Library/TemplateResetSystemLib
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2014-08-19 13:29:52 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-19 13:29:52 +0000
commit3402aac7d985bf8a9f9d3c639f3fe93609380513 (patch)
tree67b11334dc45181581aaaac236243fe72c7f614c /EmbeddedPkg/Library/TemplateResetSystemLib
parent62d441fb17d59958bf00c4a1f3b52bf6a0b40b24 (diff)
downloadedk2-platforms-3402aac7d985bf8a9f9d3c639f3fe93609380513.tar.xz
ARM Packages: Removed trailing spaces
Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-By: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Library/TemplateResetSystemLib')
-rw-r--r--EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c b/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c
index 5c482a29f7..328bcbcf16 100644
--- a/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c
+++ b/EmbeddedPkg/Library/TemplateResetSystemLib/ResetSystemLib.c
@@ -1,11 +1,11 @@
/** @file
Template library implementation to support ResetSystem Runtime call.
-
+
Fill in the templates with what ever makes you system reset.
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-
+
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
@@ -46,30 +46,30 @@ LibResetSystem (
{
UINTN Address;
UINT8 Data;
-
-
+
+
switch (ResetType) {
case EfiResetCold:
// system power cycle
-
+
// Example using IoLib functions to do IO.
Address = 0x12345678;
Data = MmioRead8 (Address);
MmioWrite8 (Address, Data | 0x01);
-
+
// Note this is a bad example asa MmioOr8 (Address, 0x01) does the same thing
break;
-
+
case EfiResetWarm:
- // not a full power cycle, maybe memory stays around.
+ // not a full power cycle, maybe memory stays around.
// if not support do the same thing as EfiResetCold.
break;
-
+
case EfiResetShutdown:
// turn off the system.
// if not support do the same thing as EfiResetCold.
break;
-
+
default:
return EFI_INVALID_PARAMETER;
}
@@ -79,7 +79,7 @@ LibResetSystem (
//
return EFI_DEVICE_ERROR;
}
-
+
/**
@@ -87,7 +87,7 @@ LibResetSystem (
@param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table.
-
+
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
**/