Browse Source

Fix up some compile err

Change-Id: I3ef7e2d54e09b254f188a890697006f250c80e2c
Target:LS2K
master
xuwenrui 7 years ago
parent
commit
77c062a0f9
  1. 6
      Targets/LS2K/ls2k/tgt_machdep.c

6
Targets/LS2K/ls2k/tgt_machdep.c

@ -36,8 +36,6 @@ 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, ...)
{
@ -1761,6 +1759,9 @@ struct pci_config_data pci_config_array[] = {
{},
};
typedef unsigned long long u64;
u64 __raw__readq(u64 addr);
u64 __raw__writeq(u64 addr, u64 val);
void ls_pcie_config_set(void)
{
int i;
@ -1777,7 +1778,6 @@ void ls_pcie_config_set(void)
ls_set_io_noncoherent();
}
typedef unsigned long long u64;
void ls_set_io_noncoherent(void)
{
u64 val;

Loading…
Cancel
Save