[haiku-commits] haiku: hrev56151 - src/libs/compat/freebsd_network

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 3 Jun 2022 02:25:36 +0000 (UTC)

hrev56151 adds 1 changeset to branch 'master'
old head: 654b4f976b3aacb8c90e8e1adf6d99d4d73af776
new head: cb7e50e0a3fd0b518ecec5eec545ddb5bb38c1d4
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=cb7e50e0a3fd+%5E654b4f976b3a

----------------------------------------------------------------------------

cb7e50e0a3fd: freebsd_network: Propagate alignment restrictions from parent 
dma_tags.
  
  FreeBSD does the same.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev56151
Commit:      cb7e50e0a3fd0b518ecec5eec545ddb5bb38c1d4
URL:         https://git.haiku-os.org/haiku/commit/?id=cb7e50e0a3fd
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Fri Jun  3 02:24:34 2022 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+)
src/libs/compat/freebsd_network/bus_dma.cpp | 1 +

----------------------------------------------------------------------------

diff --git a/src/libs/compat/freebsd_network/bus_dma.cpp 
b/src/libs/compat/freebsd_network/bus_dma.cpp
index 8f880d4216..2ce8ee5842 100644
--- a/src/libs/compat/freebsd_network/bus_dma.cpp
+++ b/src/libs/compat/freebsd_network/bus_dma.cpp
@@ -127,6 +127,7 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t 
alignment, bus_size_t bounda
 
                newtag->lowaddr = max_c(parent->lowaddr, newtag->lowaddr);
                newtag->highaddr = min_c(parent->highaddr, newtag->highaddr);
+               newtag->alignment = max_c(parent->alignment, newtag->alignment);
 
                if (newtag->boundary == 0) {
                        newtag->boundary = parent->boundary;


Other related posts:

  • » [haiku-commits] haiku: hrev56151 - src/libs/compat/freebsd_network - waddlesplash