mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-10-24 14:49:08 +02:00
lib: disable usbfs zero-copy support by default
Although we added a detection mechanism for the presence of the Kernel bug earlier, reading from the incorrectly mapped memory might cause a bus error on some ARM systems. With the overall performance benefit being rather minimal for the data rates of rtl-sdr, disable zero-copy by default.
This commit is contained in:
@@ -126,6 +126,14 @@ else (DETACH_KERNEL_DRIVER)
|
||||
message (STATUS "Building with kernel driver detaching disabled, use -DDETACH_KERNEL_DRIVER=ON to enable")
|
||||
endif (DETACH_KERNEL_DRIVER)
|
||||
|
||||
option(ENABLE_ZEROCOPY "Enable usbfs zero-copy support" OFF)
|
||||
if (ENABLE_ZEROCOPY)
|
||||
message (STATUS "Building with usbfs zero-copy support enabled")
|
||||
add_definitions(-DENABLE_ZEROCOPY=1)
|
||||
else (ENABLE_ZEROCOPY)
|
||||
message (STATUS "Building with usbfs zero-copy support disabled, use -DENABLE_ZEROCOPY=ON to enable")
|
||||
endif (ENABLE_ZEROCOPY)
|
||||
|
||||
########################################################################
|
||||
# Add subdirectories
|
||||
########################################################################
|
||||
|
||||
Reference in New Issue
Block a user