]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/GdbStub/Ia32/Processor.c
ARM Packages: Fixed coding style and typos
[mirror_edk2.git] / EmbeddedPkg / GdbStub / Ia32 / Processor.c
index a6aceaef99a0785d496d0780ff3c316115b57b66..e327b3e6db4114c419b5baf5de320f43b541f80c 100644 (file)
@@ -147,7 +147,7 @@ CheckIsa (
  @retval  the pointer to the RegNumber-th pointer\r
  **/\r
 UINTN *\r
-FindPointerToRegister(\r
+FindPointerToRegister (\r
   IN  EFI_SYSTEM_CONTEXT  SystemContext,\r
   IN  UINTN               RegNumber  \r
   )\r
@@ -177,8 +177,8 @@ BasicReadRegister (
   \r
   RegSize = 0;\r
   while (RegSize < REG_SIZE) {\r
-    *OutBufPtr++ = mHexToStr[((*FindPointerToRegister(SystemContext, RegNumber) >> (RegSize+4)) & 0xf)];\r
-    *OutBufPtr++ = mHexToStr[((*FindPointerToRegister(SystemContext, RegNumber) >> RegSize) & 0xf)];\r
+    *OutBufPtr++ = mHexToStr[((*FindPointerToRegister (SystemContext, RegNumber) >> (RegSize+4)) & 0xf)];\r
+    *OutBufPtr++ = mHexToStr[((*FindPointerToRegister (SystemContext, RegNumber) >> RegSize) & 0xf)];\r
     RegSize = RegSize + 8;\r
   }\r
   return OutBufPtr;\r
@@ -210,7 +210,7 @@ ReadNthRegister (
   }\r
 \r
   OutBufPtr = OutBuffer;\r
-  OutBufPtr = BasicReadRegister(SystemContext, RegNumber, OutBufPtr);\r
+  OutBufPtr = BasicReadRegister (SystemContext, RegNumber, OutBufPtr);\r
 \r
   *OutBufPtr = '\0';  // the end of the buffer\r
   SendPacket(OutBuffer);\r
@@ -233,8 +233,8 @@ ReadGeneralRegisters (
   CHAR8 *OutBufPtr;   // pointer to the output buffer\r
 \r
   OutBufPtr = OutBuffer;\r
-  for(i = 0 ; i < MaxRegisterCount() ; i++) {  // there are only 16 registers to read   \r
-    OutBufPtr = BasicReadRegister(SystemContext, i, OutBufPtr);\r
+  for (i = 0 ; i < MaxRegisterCount() ; i++) {  // there are only 16 registers to read   \r
+    OutBufPtr = BasicReadRegister (SystemContext, i, OutBufPtr);\r
   }\r
 \r
   *OutBufPtr = '\0';  // the end of the buffer\r
@@ -282,7 +282,7 @@ BasicWriteRegister (
     NewValue += (TempValue << RegSize); \r
     RegSize = RegSize + 8;\r
   }\r
-  *(FindPointerToRegister(SystemContext, RegNumber)) = NewValue;\r
+  *(FindPointerToRegister (SystemContext, RegNumber)) = NewValue;\r
   return InBufPtr;\r
 }\r
 \r
@@ -353,8 +353,8 @@ WriteGeneralRegisters (
   \r
   // Read the new values for the registers from the input buffer to an array, NewValueArray.\r
   // The values in the array are in the gdb ordering\r
-  for(i=0; i < MaxRegisterCount(); i++) {  // there are only 16 registers to write\r
-    InBufPtr = BasicWriteRegister(SystemContext, i, InBufPtr);\r
+  for (i=0; i < MaxRegisterCount(); i++) {  // there are only 16 registers to write\r
+    InBufPtr = BasicWriteRegister (SystemContext, i, InBufPtr);\r
   }\r
 \r
   SendSuccess();\r
@@ -867,7 +867,7 @@ InsertBreakPoint (
 \r
     if (Status == EFI_UNSUPPORTED) {\r
       Print ((CHAR16 *)L"Not supported\n");\r
-      SendNotSupported();\r
+      SendNotSupported ();\r
       return;\r
     }\r
 \r
@@ -946,7 +946,7 @@ RemoveBreakPoint (
 \r
     if (Status == EFI_UNSUPPORTED) {\r
       Print ((CHAR16 *)L"Not supported.\n");\r
-      SendNotSupported();\r
+      SendNotSupported ();\r
       return;\r
     }\r
 \r
@@ -956,7 +956,7 @@ RemoveBreakPoint (
   }\r
 \r
   //Remove breakpoint\r
-  Status = DisableDebugRegister(SystemContext, Register);\r
+  Status = DisableDebugRegister (SystemContext, Register);\r
   if (EFI_ERROR(Status)) {\r
     Print ((CHAR16 *)L"Invalid argument.\n");\r
     SendError (GDB_EINVALIDARG);\r