diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:08:34 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:08:34 +0100 |
commit | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (patch) | |
tree | 31fe2a493efcc3ec8721b8ae9943a0f938cd3f4d /repo/ceph/20-pci.patch | |
parent | e4a392b4e1e547c9569abdd1f08ec51da3dc4562 (diff) |
added qemu
Diffstat (limited to 'repo/ceph/20-pci.patch')
-rw-r--r-- | repo/ceph/20-pci.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/repo/ceph/20-pci.patch b/repo/ceph/20-pci.patch deleted file mode 100644 index c16e276..0000000 --- a/repo/ceph/20-pci.patch +++ /dev/null @@ -1,63 +0,0 @@ -Musl patch for pci - -diff -Nurp a/src/spdk/dpdk/drivers/bus/pci/linux/pci_uio.c b/src/spdk/dpdk/drivers/bus/pci/linux/pci_uio.c ---- a/src/spdk/dpdk/drivers/bus/pci/linux/pci_uio.c 2020-11-21 13:07:44.255206657 +0000 -+++ b/src/spdk/dpdk/drivers/bus/pci/linux/pci_uio.c 2020-11-21 13:04:06.488285583 +0000 -@@ -14,6 +14,32 @@ - - #if defined(RTE_ARCH_X86) - #include <sys/io.h> -+#if defined(__GLIBC__) -+#define pci_uio_outl_p outl_p -+#define pci_uio_outw_p outw_p -+#define pci_uio_outb_p outb_p -+#else -+static inline void -+pci_uio_outl_p(unsigned int value, unsigned short int port) -+{ -+ __asm__ __volatile__ ("outl %0,%w1\noutb %%al,$0x80" : : "a" (value), -+ "Nd" (port)); -+} -+ -+static inline void -+pci_uio_outw_p(unsigned short int value, unsigned short int port) -+{ -+ __asm__ __volatile__ ("outw %w0,%w1\noutb %%al,$0x80" : : "a" (value), -+ "Nd" (port)); -+} -+ -+static inline void -+pci_uio_outb_p(unsigned char value, unsigned short int port) -+{ -+ __asm__ __volatile__ ("outb %b0,%w1\noutb %%al,$0x80" : : "a" (value), -+ "Nd" (port)); -+} -+#endif - #endif - - #include <rte_string_fns.h> -@@ -528,21 +554,21 @@ pci_uio_ioport_write(struct rte_pci_iopo - if (len >= 4) { - size = 4; - #if defined(RTE_ARCH_X86) -- outl_p(*(const uint32_t *)s, reg); -+ pci_uio_outl_p(*(const uint32_t *)s, reg); - #else - *(volatile uint32_t *)reg = *(const uint32_t *)s; - #endif - } else if (len >= 2) { - size = 2; - #if defined(RTE_ARCH_X86) -- outw_p(*(const uint16_t *)s, reg); -+ pci_uio_outw_p(*(const uint16_t *)s, reg); - #else - *(volatile uint16_t *)reg = *(const uint16_t *)s; - #endif - } else { - size = 1; - #if defined(RTE_ARCH_X86) -- outb_p(*s, reg); -+ pci_uio_outb_p(*s, reg); - #else - *(volatile uint8_t *)reg = *s; - #endif |