0001
0002
0003
0004
0005
0006 #include <linux/export.h>
0007 #include <linux/init.h>
0008
0009 #include <asm/wbflush.h>
0010 #include <asm/bootinfo.h>
0011
0012 #include <loongson.h>
0013
0014 static void wbflush_loongson(void)
0015 {
0016 asm(".set\tpush\n\t"
0017 ".set\tnoreorder\n\t"
0018 ".set mips3\n\t"
0019 "sync\n\t"
0020 "nop\n\t"
0021 ".set\tpop\n\t"
0022 ".set mips0\n\t");
0023 }
0024
0025 void (*__wbflush)(void) = wbflush_loongson;
0026 EXPORT_SYMBOL(__wbflush);
0027
0028 void __init plat_mem_setup(void)
0029 {
0030 }