Skip to content
Snippets Groups Projects
  1. Apr 17, 2024
  2. Mar 23, 2024
  3. Mar 14, 2024
  4. Feb 04, 2024
  5. Oct 17, 2023
  6. Aug 01, 2023
    • Flávio Cruz's avatar
      Fix compilation warnings when building against hurd-amd64. · 6cd5a4af
      Flávio Cruz authored
      Passes mach_msg_type_number_t instead of size_t which have different
      sizes. Example warning:
      
      /hurd_pci.c:101:53: warning: passing argument 3 of 'pci_get_dev_regions' from incompatible pointer type [-Wincompatible-pointer-types]
        101 |     err = pci_get_dev_regions(d->device_port, &buf, &size);
            |                                                     ^~~~~
            |                                                     |
            |                                                     size_t * {aka long unsigned int *}
      6cd5a4af
  7. Jun 21, 2023
  8. Mar 25, 2023
  9. Mar 24, 2023
  10. Dec 15, 2022
    • Khem Raj's avatar
      linux_sysfs: Use pwrite/pread instead of 64bit versions · 833c86ce
      Khem Raj authored
      
      pread64/pwrite64 are aliased to pread/pwrite when largefile support is
      enabled e.g. using _FILE_OFFSET_BITS=64 macro
      
      This helps it compile on latest musl C library based systems where these
      functions are put under _LARGEFILE64_SOURCE which is to be removed once
      all packages start using 64bit off_t, it works with glibc becuase
      _GNU_SOURCE feature macro also defines _LARGEFILE64_SOURCE, thats not
      the case with musl
      
      Signed-off-by: default avatarKhem Raj <raj.khem@gmail.com>
      833c86ce
  11. Oct 18, 2022
  12. Aug 23, 2022
    • Samuel Thibault's avatar
      hurd: Fix pci_device_hurd_map_legacy · d193fa69
      Samuel Thibault authored
      It was not passing a proper region number to pci_device_hurd_map_range,
      and that would not make sense anyway since the rom is not a region for
      instance, and the video memory, interrupt vector etc. aren't a region or
      the rom.
      
      So this uses pci_device_hurd_map_range for the rom, and
      pci_system_x86_map_dev_mem for non-rom. Unfortunately pci-arbiter
      currently cannot get the rom_base from libpciaccess, so we can only
      guess that we are trying to map a rom.
      d193fa69
  13. Aug 11, 2022
  14. Aug 01, 2022
  15. Jun 21, 2022
  16. Apr 07, 2022
  17. Apr 06, 2022
  18. Apr 03, 2022
  19. Apr 02, 2022
  20. Mar 13, 2022
  21. Feb 15, 2022
  22. Jan 09, 2022
    • Samuel Thibault's avatar
      hurd: Restore initialization order · 740d2f29
      Samuel Thibault authored
      3e0d1cde ("hurd: Implement device memory mapping") was making
      root-running processes insist on using the pci device, and never try the
      fs-provided translator. This reverts back to trying the pci device
      first, but completely, and then revert to the fs-provided translator.
      740d2f29
  23. Jan 08, 2022
    • Joan Lledó's avatar
      hurd: Implement device memory mapping · 3e0d1cde
      Joan Lledó authored and Samuel Thibault's avatar Samuel Thibault committed
      
      * src/hurd_pci.c:
      	* Implement device memory mapping functions
      		* pci_device_hurd_map_range
      		* pci_device_hurd_unmap_range
      		* pci_device_hurd_map_legacy
      		* pci_device_hurd_unmap_legacy
      * src/x86_pci.h:
      	* Remove unused declarations
      		* pci_device_x86_map_range()
      		* pci_device_x86_unmap_range()
      		* pci_device_x86_map_legacy()
      		* pci_device_x86_unmap_legacy()
      * src/x86_pci.c:
      	* Fix port leaks
      	* Make mapping function static again
      	* map_dev_mem(): use device_map() support for offsets
      Message-Id: <20220105120802.14008-2-jlledom@mailfence.com>
      
      Reviewed-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
      3e0d1cde
  24. Apr 13, 2021
  25. Apr 05, 2021
  26. Dec 02, 2020
  27. Nov 02, 2020
  28. Sep 09, 2020
Loading