system.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/include/asm-arm/arch-arc/system.h
  3.  *
  4.  *  Copyright (C) 1996-1999 Russell King and Dave Gilbert
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  */
  10. static void arch_idle(void)
  11. {
  12. while (!current->need_resched && !hlt_counter);
  13. }
  14. static inline void arch_reset(char mode)
  15. {
  16. /*
  17.  * copy branch instruction to reset location and call it
  18.  */
  19. *(unsigned long *)0 = *(unsigned long *)0x03800000;
  20. ((void(*)(void))0)();
  21. }