]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/SemihostFs: Added comment in FileRead()
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Mar 2013 00:58:06 +0000 (00:58 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Mar 2013 00:58:06 +0000 (00:58 +0000)
The comment says we cannot list files in the Semihosting FileSystem.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14187 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c

index 6443a7bf44a7695290525c8136f88dd64048ab9b..b04e866a995f405f131961b86bb8e6e8a9fcd803 100644 (file)
@@ -2,7 +2,7 @@
   Support a Semi Host file system over a debuggers JTAG\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  Portions copyright (c) 2011, 2012, ARM Ltd. All rights reserved.<BR>\r
+  Portions copyright (c) 2011-2013, ARM Ltd. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -291,6 +291,7 @@ FileRead (
   Fcb = SEMIHOST_FCB_FROM_THIS(File);\r
 \r
   if (Fcb->IsRoot == TRUE) {\r
+    // By design, the Semihosting feature does not allow to list files on the host machine.\r
     Status = EFI_UNSUPPORTED;\r
   } else {\r
     Status = SemihostFileRead (Fcb->SemihostHandle, BufferSize, Buffer);\r