Make UEFI boot-platform build again
[haiku.git] / headers / private / kernel / arch / sh4 / cpu.h
blob6a30111da13fa8e86b3d9575d0fcf7a0937a1fb8
1 /*
2 ** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _NEWOS_KERNEL_ARCH_SH4_CPU_H
6 #define _NEWOS_KERNEL_ARCH_SH4_CPU_H
8 #include <arch/cpu.h>
9 #include <arch/sh4/sh4.h>
11 unsigned int get_fpscr();
12 unsigned int get_sr();
13 void sh4_context_switch(unsigned int **old_sp, unsigned int *new_sp);
14 void sh4_function_caller();
15 void sh4_set_kstack(addr kstack);
16 void sh4_enter_uspace(addr entry, void *args, addr ustack_top);
17 void sh4_set_user_pgdir(addr pgdir);
18 void sh4_invl_page(addr va);
19 #define PAGE_SIZE 4096
21 #define _BIG_ENDIAN 0
22 #define _LITTLE_ENDIAN 1
23 #endif