Changeset b6e481b in mainline


Ignore:
Timestamp:
2014-02-10T20:24:30Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2463df9
Parents:
054f3079
Message:

Remove calls to munmap() from native code.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/wavplay/dplay.c

    r054f3079 rb6e481b  
    4141#include <fibril_synch.h>
    4242#include <pcm/format.h>
    43 #include <sys/mman.h>
     43#include <as.h>
    4444#include <sys/time.h>
    4545#include <inttypes.h>
     
    397397cleanup:
    398398        fclose(pb.source);
    399         munmap(pb.buffer.base, pb.buffer.size);
     399        as_area_destroy(pb.buffer.base);
    400400        audio_pcm_release_buffer(pb.device);
    401401close_session:
  • uspace/app/wavplay/drec.c

    r054f3079 rb6e481b  
    4040#include <pcm/format.h>
    4141#include <stdio.h>
    42 #include <sys/mman.h>
     42#include <as.h>
    4343#include <inttypes.h>
    4444
     
    229229cleanup:
    230230        fclose(rec.file);
    231         munmap(rec.buffer.base, rec.buffer.size);
     231        as_area_destroy(rec.buffer.base);
    232232        audio_pcm_release_buffer(rec.device);
    233233close_session:
  • uspace/srv/audio/hound/audio_device.c

    r054f3079 rb6e481b  
    4242#include <str.h>
    4343#include <str_error.h>
    44 #include <sys/mman.h>
     44#include <as.h>
    4545
    4646
     
    381381        const int ret = audio_pcm_release_buffer(dev->sess);
    382382        if (ret == EOK) {
    383                 munmap(dev->buffer.base, dev->buffer.size);
     383                as_area_destroy(dev->buffer.base);
    384384                dev->buffer.base = NULL;
    385385                dev->buffer.size = 0;
Note: See TracChangeset for help on using the changeset viewer.