Skip to content

Commit

Permalink
[mips] Unbreak kernel build for CI20
Browse files Browse the repository at this point in the history
- Include header required for boot_parse_XXX functions
- Use boot_parse_args when parsing argc/argv style arguments
- Remove unused function
  • Loading branch information
gonzoua committed Jan 25, 2019
1 parent d6c17b7 commit 76fa23e
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions sys/mips/ingenic/jz4780_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/boot.h>
#include <sys/cons.h>
#include <sys/kdb.h>
#include <sys/reboot.h>
Expand Down Expand Up @@ -173,20 +174,6 @@ mips_init(void)
#endif
}

#ifdef FDT
static void
_parse_bootargs(char *cmdline)
{
char *v;

while ((v = strsep(&cmdline, " \n")) != NULL) {
if (*v == '\0')
continue;
boothowto |= boot_parse_arg(v);
}
}
#endif

void
platform_start(__register_t a0, __register_t a1,
__register_t a2 __unused, __register_t a3 __unused)
Expand Down Expand Up @@ -247,7 +234,7 @@ platform_start(__register_t a0, __register_t a1,
/* Parse cmdline from U-Boot */
argc = a0;
argv = (char **)a1;
boothowto |= boot_parse_cmdline(argc, argv);
boothowto |= boot_parse_args(argc, argv);

mips_init();
}

0 comments on commit 76fa23e

Please sign in to comment.