remove unused PCD
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Jan 2007 04:07:33 +0000 (04:07 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Jan 2007 04:07:33 +0000 (04:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2337 6f19259b-4bc3-4df7-8a09-765794883524

EdkUnixPkg/Sec/SecMain.c
EdkUnixPkg/Sec/UgaX11.c
EdkUnixPkg/Unix.fpd

index b1394a2..72fad08 100644 (file)
@@ -313,10 +313,10 @@ MapMemory (
   INTN   prot,
   INTN   flags)
 {
-  STATIC UINTN base = 0x40000000;
-  CONST UINTN align = (1 << 24);
-  VOID *res;
-  BOOLEAN isAligned = 0;
+  STATIC UINTN base  = 0x40000000;
+  CONST UINTN  align = (1 << 24);
+  VOID         *res  = NULL;
+  BOOLEAN      isAligned = 0;
 
   //
   // Try to get an aligned block somewhere in the address space of this
index 5fbdeae..b5719cf 100644 (file)
@@ -113,8 +113,8 @@ TryCreateShmImage(UGA_IO_PRIVATE *drv)
   /* Can this fail ?  */
   shmctl (drv->xshm_info.shmid, IPC_RMID, NULL);
 
-  drv->xshm_info.shmaddr = drv->image_data;
-  drv->image->data = drv->image_data;
+  drv->xshm_info.shmaddr = (char*)drv->image_data;
+  drv->image->data = (char*)drv->image_data;
          
   if (!XShmAttach (drv->display, &drv->xshm_info))
     {
@@ -189,7 +189,7 @@ UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height)
       
       drv->image_data = malloc((drv->width * drv->height) << drv->pixel_shift);
       drv->image = XCreateImage (drv->display, drv->visual, drv->depth,
-                                ZPixmap, 0, drv->image_data,
+                                ZPixmap, 0, (char *)drv->image_data,
                                 drv->width, drv->height,
                                 8 << drv->pixel_shift, 0);
     }
@@ -328,6 +328,7 @@ UgaColorToPixel (UGA_IO_PRIVATE *drv, unsigned long val)
 {
   EFI_UGA_PIXEL res;
 
+  memset (&res, 0, sizeof (EFI_UGA_PIXEL));
   /* FIXME: should round instead of truncate.  */
   res.Red = (val >> drv->r.shift) << drv->r.csize;
   res.Green = (val >> drv->g.shift) << drv->g.csize;
index ece893e..f3bffcd 100644 (file)
           <MaxDatumSize>4</MaxDatumSize>
           <Value>200000000</Value>
         </PcdData>
-        <PcdData ItemType="FIXED_AT_BUILD">
-          <C_Name>PcdIoBlockBaseAddressForIpf</C_Name>
-          <Token>0x0000000c</Token>
-          <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
-          <DatumType>UINT64</DatumType>
-          <MaxDatumSize>8</MaxDatumSize>
-          <Value>0x0ffffc000000</Value>
-        </PcdData>
         <PcdData ItemType="FEATURE_FLAG">
           <C_Name>PcdUnixStatusCodeLibUseForPei</C_Name>
           <Token>0x0000100b</Token>
           <MaxDatumSize>4</MaxDatumSize>
           <Value>200000000</Value>
         </PcdData>
-        <PcdData ItemType="FIXED_AT_BUILD">
-          <C_Name>PcdIoBlockBaseAddressForIpf</C_Name>
-          <Token>0x0000000c</Token>
-          <TokenSpaceGuidCName>gEfiMdePkgTokenSpaceGuid</TokenSpaceGuidCName>
-          <DatumType>UINT64</DatumType>
-          <MaxDatumSize>8</MaxDatumSize>
-          <Value>0x0ffffc000000</Value>
-        </PcdData>
         <PcdData ItemType="FEATURE_FLAG">
           <C_Name>PcdUnixStatusCodeLibUseForPei</C_Name>
           <Token>0x0000100b</Token>
           <MaxDatumSize>1</MaxDatumSize>
           <Value>FALSE</Value>
         </PcdData>
-        <PcdData ItemType="FEATURE_FLAG">
-          <C_Name>PcdPciBusHotplugDeviceSupport</C_Name>
-          <Token>0x0001003d</Token>
-          <TokenSpaceGuidCName>gEfiGenericPlatformTokenSpaceGuid</TokenSpaceGuidCName>
-          <DatumType>BOOLEAN</DatumType>
-          <MaxDatumSize>1</MaxDatumSize>
-          <Value>TRUE</Value>
-        </PcdData>
       </PcdBuildDefinition>
       <ModuleSaBuildOptions>
         <FvBinding>NULL</FvBinding>
           <MaxDatumSize>1</MaxDatumSize>
           <Value>FALSE</Value>
         </PcdData>
-        <PcdData ItemType="FEATURE_FLAG">\r
-          <C_Name>PcdPciBusHotplugDeviceSupport</C_Name>\r
-          <Token>0x0001003d</Token>\r
-          <TokenSpaceGuidCName>gEfiGenericPlatformTokenSpaceGuid</TokenSpaceGuidCName>\r
-          <DatumType>BOOLEAN</DatumType>\r
-          <MaxDatumSize>1</MaxDatumSize>\r
-          <Value>TRUE</Value>\r
-        </PcdData>\r
+        <PcdData ItemType="FEATURE_FLAG">
+          <C_Name>PcdPciBusHotplugDeviceSupport</C_Name>
+          <Token>0x0001003d</Token>
+          <TokenSpaceGuidCName>gEfiGenericPlatformTokenSpaceGuid</TokenSpaceGuidCName>
+          <DatumType>BOOLEAN</DatumType>
+          <MaxDatumSize>1</MaxDatumSize>
+          <Value>TRUE</Value>
+        </PcdData>
       </PcdBuildDefinition>
       <ModuleSaBuildOptions>
         <FvBinding>FV_RECOVERY</FvBinding>
       cd ${SecMainPath}
       ./SecMain.exe</echo>
   </UserExtensions>
-</PlatformSurfaceArea>
+</PlatformSurfaceArea>
\ No newline at end of file