Browse Source

fix ls2k ls_set_io_noncoherent im to ULL, add missing function declare.

Change-Id: I8879f4c31685e4fe5f4ff6e0b23cf428b1de0ed0
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 7 years ago
committed by Xuefeng Li
parent
commit
1fc2495d4c
  1. 8
      Targets/LS2K/ls2k/tgt_machdep.c

8
Targets/LS2K/ls2k/tgt_machdep.c

@ -36,6 +36,8 @@ unsigned int mem_size = 0;
#include "../../../pmon/common/smbios/smbios.h"
u64 __raw__readq(u64 addr);
u64 __raw__writeq(u64 addr, u64 val);
void tgt_putchar(int);
int tgt_printf(const char *fmt, ...)
{
@ -1776,15 +1778,15 @@ void ls_set_io_noncoherent(void)
u64 val;
val = __raw__readq(0x900000001fe10420);
val &= 0xffffff8fffffffe; //pcie, usb, hda, gmac
val &= 0xffffff8fffffffeULL; //pcie, usb, hda, gmac
__raw__writeq(0x900000001fe10420 , val);
val = __raw__readq(0x900000001fe10430);
val &= 0xffffffffffffff3; //dc, gpu
val &= 0xffffffffffffff3ULL; //dc, gpu
__raw__writeq(0x900000001fe10430 , val);
val = __raw__readq(0x900000001fe10450);
val &= 0xffffffffffffbff; //sata
val &= 0xffffffffffffbffULL; //sata
__raw__writeq(0x900000001fe10450 , val);
val = __raw__readq(0x900000001fe10c00);

Loading…
Cancel
Save