From b1cab81feccfa52d76dc1f191cd329755f2a644a Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Tue, 12 Mar 2013 00:58:06 +0000 Subject: [PATCH] ArmPkg/SemihostFs: Added comment in FileRead() The comment says we cannot list files in the Semihosting FileSystem. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14187 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c b/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c index 6443a7bf44..b04e866a99 100644 --- a/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c +++ b/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c @@ -2,7 +2,7 @@ Support a Semi Host file system over a debuggers JTAG Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- Portions copyright (c) 2011, 2012, ARM Ltd. All rights reserved.
+ Portions copyright (c) 2011-2013, ARM Ltd. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -291,6 +291,7 @@ FileRead ( Fcb = SEMIHOST_FCB_FROM_THIS(File); if (Fcb->IsRoot == TRUE) { + // By design, the Semihosting feature does not allow to list files on the host machine. Status = EFI_UNSUPPORTED; } else { Status = SemihostFileRead (Fcb->SemihostHandle, BufferSize, Buffer); -- 2.39.2