cpu.c 600 B

123456789101112131415161718192021222324252627282930313233343536
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2003
  4. * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
  5. */
  6. #include <common.h>
  7. #include <command.h>
  8. #include <init.h>
  9. #include <linux/compiler.h>
  10. #include <asm/cache.h>
  11. #include <asm/mipsregs.h>
  12. #include <asm/reboot.h>
  13. #ifndef CONFIG_SYSRESET
  14. void __weak _machine_restart(void)
  15. {
  16. fprintf(stderr, "*** reset failed ***\n");
  17. while (1)
  18. /* NOP */;
  19. }
  20. int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
  21. {
  22. _machine_restart();
  23. return 0;
  24. }
  25. #endif
  26. int arch_cpu_init(void)
  27. {
  28. mips_cache_probe();
  29. return 0;
  30. }