mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 13:08:42 +00:00
Revert "Fix compilation on Ubuntu 14.04"
This reverts commitbc0579d0ff
. The commitbc0579d
makes acrn-dm crashed when launch UOS. Crash log: ./launch_UOS.sh: line 112: 377 Segmentation fault (core dumped) acrn-dm ... dmesg log: acrn-dm[1264]: segfault at 1f0 ip 0000000000412257 sp 00007fffc1af9920 error 6 in acrn-dm[400000+3d000] After this patch reverted, UOS launched successfully.
This commit is contained in:
parent
c5b14c2646
commit
e86b01f57e
@ -1478,7 +1478,7 @@ static void
|
|||||||
atapi_mode_sense(struct ahci_port *p, int slot, uint8_t *cfis)
|
atapi_mode_sense(struct ahci_port *p, int slot, uint8_t *cfis)
|
||||||
{
|
{
|
||||||
uint8_t *acmd;
|
uint8_t *acmd;
|
||||||
uint32_t tfd =0;
|
uint32_t tfd;
|
||||||
uint8_t pc, code;
|
uint8_t pc, code;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
@ -270,14 +270,14 @@ static inline void
|
|||||||
pci_set_cfgdata16(struct pci_vdev *pi, int offset, uint16_t val)
|
pci_set_cfgdata16(struct pci_vdev *pi, int offset, uint16_t val)
|
||||||
{
|
{
|
||||||
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
|
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
|
||||||
*(uint16_t *)((uint16_t *)pi->cfgdata + offset) = val;
|
*(uint16_t *)(pi->cfgdata + offset) = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
pci_set_cfgdata32(struct pci_vdev *pi, int offset, uint32_t val)
|
pci_set_cfgdata32(struct pci_vdev *pi, int offset, uint32_t val)
|
||||||
{
|
{
|
||||||
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
|
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
|
||||||
*(uint32_t *)((uint32_t *)pi->cfgdata + offset) = val;
|
*(uint32_t *)(pi->cfgdata + offset) = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint8_t
|
static inline uint8_t
|
||||||
@ -291,14 +291,14 @@ static inline uint16_t
|
|||||||
pci_get_cfgdata16(struct pci_vdev *pi, int offset)
|
pci_get_cfgdata16(struct pci_vdev *pi, int offset)
|
||||||
{
|
{
|
||||||
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
|
assert(offset <= (PCI_REGMAX - 1) && (offset & 1) == 0);
|
||||||
return (*(uint16_t *)((uint16_t *)pi->cfgdata + offset));
|
return (*(uint16_t *)(pi->cfgdata + offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
pci_get_cfgdata32(struct pci_vdev *pi, int offset)
|
pci_get_cfgdata32(struct pci_vdev *pi, int offset)
|
||||||
{
|
{
|
||||||
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
|
assert(offset <= (PCI_REGMAX - 3) && (offset & 3) == 0);
|
||||||
return (*(uint32_t *)((uint32_t *)pi->cfgdata + offset));
|
return (*(uint32_t *)(pi->cfgdata + offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _PCI_CORE_H_ */
|
#endif /* _PCI_CORE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user