Changeset 3772af6 in mainline for kernel/generic/include


Ignore:
Timestamp:
2013-09-09T20:25:27Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee7f78a
Parents:
c501bc4
Message:

remove the special-purpose DMA zone (including the ZONE_DMA and FRAME_DMA flags)
this most probably breaks Sound Blaster 16, but it is reported to be broken anyhow
a proper platform-independent DMA memory allocation is in the works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/frame.h

    rc501bc4 r3772af6  
    6363/** Allocate a frame which cannot be identity-mapped. */
    6464#define FRAME_HIGHMEM     0x20
    65 /** Allocate a frame which needs to be from DMA zone. */
    66 #define FRAME_DMA         0x40
    6765
    6866typedef uint8_t zone_flags_t;
     
    7977/** Zone contains memory that cannot be identity-mapped */
    8078#define ZONE_HIGHMEM    0x10
    81 /** Zone contains memory suitable for old ISA DMA */
    82 #define ZONE_DMA        0x20
    8379
    8480/** Mask of zone bits that must be matched exactly. */
    8581#define ZONE_EF_MASK    0x7
    8682
    87 #define FRAME_TO_ZONE_FLAGS(ff) \
    88         ((((ff) & FRAME_DMA) ? ZONE_DMA : \
    89             (((ff) & FRAME_LOWMEM) ? ZONE_LOWMEM : \
     83#define FRAME_TO_ZONE_FLAGS(ff) \
     84        ((((ff) & FRAME_LOWMEM) ? ZONE_LOWMEM : \
    9085            (((ff) & FRAME_HIGHMEM) ? ZONE_HIGHMEM : \
    91             ZONE_LOWMEM /* | ZONE_HIGHMEM */))) | \
     86            ZONE_LOWMEM /* | ZONE_HIGHMEM */)) | \
    9287            ZONE_AVAILABLE)
    9388
Note: See TracChangeset for help on using the changeset viewer.