2 ** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
5 #ifndef _NEWOS_KERNEL_ARCH_SH4_CPU_H
6 #define _NEWOS_KERNEL_ARCH_SH4_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
22 #define _LITTLE_ENDIAN 1