cpu.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * (C) Copyright 2002
  3. * Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
  4. *
  5. * (C) Copyright 2002
  6. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  7. * Marius Groeger <mgroeger@sysgo.de>
  8. *
  9. * (C) Copyright 2002
  10. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  11. * Alex Zuepke <azu@sysgo.de>
  12. *
  13. * See file CREDITS for list of people who contributed to this
  14. * project.
  15. *
  16. * This program is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of
  19. * the License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29. * MA 02111-1307 USA
  30. */
  31. /*
  32. * CPU specific code
  33. */
  34. #include <common.h>
  35. #include <command.h>
  36. int cpu_init(void)
  37. {
  38. return 0;
  39. }
  40. int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  41. {
  42. extern void reset_cpu(ulong addr);
  43. printf ("resetting ...\n");
  44. udelay(50000); /* wait 50 ms */
  45. disable_interrupts();
  46. reset_cpu(0);
  47. /*NOTREACHED*/
  48. return 0;
  49. }
  50. void flush_cache (unsigned long dummy1, unsigned long dummy2)
  51. {
  52. asm("wbinvd\n");
  53. return;
  54. }