common: spl: move armv7m-specific code to spl_perform_fixups()
[platform/kernel/u-boot.git] / cmd / bedbug.c
index bef617b..0bd67fc 100644 (file)
@@ -39,7 +39,6 @@ int bedbug_puts (const char *str)
 }                              /* bedbug_puts */
 
 
-
 /* ======================================================================
  * Initialize the bug_ctx structure used by the bedbug debugger.  This is
  * specific to the CPU since each has different debug registers and
@@ -53,7 +52,6 @@ int bedbug_init(void)
 }                              /* bedbug_init */
 
 
-
 /* ======================================================================
  * Entry point from the interpreter to the disassembler.  Repeated calls
  * will resume from the last disassembled address.
@@ -75,11 +73,11 @@ int do_bedbug_dis(struct cmd_tbl *cmdtp, int flag, int argc,
 
        if ((flag & CMD_FLAG_REPEAT) == 0) {
                /* New command */
-               addr = simple_strtoul (argv[1], NULL, 16);
+               addr = hextoul(argv[1], NULL);
 
                /* If an extra param is given then it is the length */
                if (argc > 2)
-                       len = simple_strtoul (argv[2], NULL, 16);
+                       len = hextoul(argv[2], NULL);
        }
 
        /* Run the disassembler */
@@ -114,7 +112,7 @@ int do_bedbug_asm(struct cmd_tbl *cmdtp, int flag, int argc,
                return CMD_RET_USAGE;
 
        printf ("\nEnter '.' when done\n");
-       mem_addr = simple_strtoul (argv[1], NULL, 16);
+       mem_addr = hextoul(argv[1], NULL);
 
        while (1) {
                putc ('\n');
@@ -183,7 +181,6 @@ void do_bedbug_breakpoint (struct pt_regs *regs)
 }                              /* do_bedbug_breakpoint */
 
 
-
 /* ======================================================================
  * Called from the CPU-specific breakpoint handling routine.  Enter a
  * mini main loop until the stopped flag is cleared from the breakpoint
@@ -241,7 +238,6 @@ void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
 }                              /* bedbug_main_loop */
 
 
-
 /* ======================================================================
  * Interpreter command to continue from a breakpoint.  Just clears the
  * stopped flag in the context so that the breakpoint routine will