Re: [edk2] [Patch]ShellPkg: Remove 'STATIC' from function declarations to avoid source level debugging problem

2014-08-28 Thread Deric Cole
Is this the whole point of defining "STATIC" rather than using the keyword "static", that it can be redefined (locally) if it causes problems like this? From: Carsey, Jaben [mailto:jaben.car...@intel.com] Sent: Thursday, August 28, 2014 1:11 PM To: Qiu, Shumin Cc: edk2-devel@lists.sourceforge.ne

Re: [edk2] [Patch]ShellPkg: Remove 'STATIC' from function declarations to avoid source level debugging problem

2014-08-29 Thread Deric Cole
ible. A workaround would be to make a new preprocessor macro name such as STATIC_FUNCTION: #if defined (WORKAROUND) #define STATIC_FUNCTION #else #define STATIC_FUNCTION static #endif STATIC_FUNCTION void helper (void) { } Workable, but pretty ugly to look at. Thanks, Scott From: D

Re: [edk2] Is there a way ...

2014-09-12 Thread Deric Cole
Why not update the shell to automatically create this ARCH variable? Deric Cole Sr. Customer Engineer Phoenix Technologies Ltd. From: allen_w...@dell.com [mailto:allen_w...@dell.com] Sent: Friday, September 12, 2014 9:14 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Is there a way

Re: [edk2] converting UNIT32 value to ASCII format

2014-09-15 Thread Deric Cole
You can use AsciiValueToString from PrintLib. Deric Cole Sr. Customer Engineer Phoenix Technologies Ltd. From: sushma s [mailto:sushma.bharadw...@gmail.com] Sent: Sunday, September 14, 2014 11:45 PM To: edk2-devel@lists.sourceforge.net Subject: [edk2] converting UNIT32 value to ASCII format

Re: [edk2] CoreLoadImage output bug?

2014-10-08 Thread Deric Cole
if). We don't want this function to use *ImageHandle in the performance code in case of failure, since it is not to be modified in that case, and we don't know what value the caller left there. Deric Cole Sr. Customer Engineer Phoenix Technologies Ltd. From: Sergey Isakov [mai

Re: [edk2] USB detection and file accessing example

2014-06-03 Thread Deric Cole
being connected? Can you access it from the shell? You could also try printing the device path for each FS handle before you try to open the file, which will give you a clue about what type of device it is. Deric Cole Sr. Customer Engineer Phoenix Technologies Ltd. From: ravi ranjan mishra

Re: [edk2] NOR Flash Driver

2014-06-12 Thread Deric Cole
on). Try adding this line above: Instance->Handle = ControllerHandle; Also note that if there is no file system, you will not see fs0/fs1/etc. for this device after you do “map -r”. But if your block I/O protocol is installed correctly, you will see blk0/blk1/etc. for it. Deric Cole Sr. Cust

Re: [edk2] Printing UINTN numbers in X64

2013-09-06 Thread Deric Cole
I always thought type 'X' was always assumed to be a UINTN, but apparently I was wrong. Maybe what is missing here is a new [flag], call it 'N', which is equivalent 'L' in 64-bit builds, and ignored in 32-bit builds. Deric Cole Sr. Customer Engineer Phoenix Te

Re: [edk2] Doubt about drivers at UEFI

2013-10-07 Thread Deric Cole
You could write a driver that replaces the original driver in order to add value - but that means you would have to duplicate all of the original functionality in your driver. Deric Cole Sr. Customer Engineer Phoenix Technologies Ltd. From: Igor Sharovar [mailto:igor.sharo...@gmail.com] Sent