cp15.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #ifndef __CP15_H__
  2. #define __CP15_H__
  3. /*
  4. * COPYRIGHT (C) 2013-2014, Shanghai Real-Thread Technology Co., Ltd
  5. *
  6. * All rights reserved.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. */
  22. unsigned long rt_cpu_get_smp_id(void);
  23. void rt_cpu_mmu_disable(void);
  24. void rt_cpu_mmu_enable(void);
  25. void rt_cpu_tlb_set(volatile unsigned long*);
  26. void rt_cpu_vector_set_base(unsigned int addr);
  27. #endif