tte_environment.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef TTE_ENVIRONMENT_H_
00020 #define TTE_ENVIRONMENT_H_
00021
00022 #ifdef OS_ARCH_LINUX
00023 # include <linux/types.h>
00024 # include <linux/slab.h>
00025 # define print_log printk
00026 # define mem_alloc(size) kmalloc((size), GFP_KERNEL)
00027 # define mem_free(ptr) kfree((ptr))
00028 # define TARGET_MPC855
00029
00030 #else
00031 # define print_log(...)
00032
00033 #endif
00034
00035 #include "tte_byteorder.h"
00036
00037 #endif