From eeb83a6b7b7cd6ae6e6b0e5576e872b32fb55180 Mon Sep 17 00:00:00 2001 From: sf Date: Sun, 4 Jun 2017 06:21:37 +0000 Subject: [PATCH] Re-arrange struct bus_dmamap members This reduces holes/padding and makes the struct smaller by 8 bytes. ok kettenis@ --- sys/arch/amd64/include/bus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/include/bus.h b/sys/arch/amd64/include/bus.h index 0463edbd0d3..4706c73d013 100644 --- a/sys/arch/amd64/include/bus.h +++ b/sys/arch/amd64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.33 2017/05/08 00:27:45 dlg Exp $ */ +/* $OpenBSD: bus.h,v 1.34 2017/06/04 06:21:37 sf Exp $ */ /* $NetBSD: bus.h,v 1.6 1996/11/10 03:19:25 thorpej Exp $ */ /*- @@ -648,10 +648,10 @@ struct bus_dmamap { * PRIVATE MEMBERS: not for use by machine-independent code. */ bus_size_t _dm_size; /* largest DMA transfer mappable */ + int _dm_flags; /* misc. flags */ int _dm_segcnt; /* number of segs this map can map */ bus_size_t _dm_maxsegsz; /* largest possible segment */ bus_size_t _dm_boundary; /* don't cross this */ - int _dm_flags; /* misc. flags */ void *_dm_cookie; /* cookie for bus-specific functions */ -- 2.20.1