Ignore:
Timestamp:
Nov 25, 2014, 7:40:20 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
79569ae
Parents:
038faca1
git-author:
Sebastian Huber <sebastian.huber@…> (11/25/14 07:40:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/27/14 09:33:30)
Message:

bsps/arm: Add .nocache section

This section can be use to provide a cache coherent memory area via
rtems_cache_coherent_add_area().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/network/network.c

    r038faca1 rcbc433c7  
    3939#include <bsp/alt_clock_manager.h>
    4040#include <bsp/alt_generalpurpose_io.h>
    41 #include <bsp/nocache-heap.h>
    4241#include "socal/alt_rstmgr.h"
    4342#include "socal/alt_sysmgr.h"
     
    10331032
    10341033  if ( memory != NULL ) {
    1035     *memory = altera_cyclone_v_nocache_malloc( size );
     1034    *memory = rtems_cache_coherent_allocate( size, 0, 0 );
    10361035
    10371036    if ( *memory != NULL ) {
     
    10581057  void *memory )
    10591058{
    1060   int eno = EINVAL;
    1061 
    10621059  (void) arg;
    10631060
    1064   assert( memory != NULL );
    1065 
    1066   if ( memory != NULL ) {
    1067     altera_cyclone_v_nocache_free( memory );
    1068     eno = 0;
    1069   }
    1070 
    1071   return eno;
     1061  free( memory );
     1062
     1063  return 0;
    10721064}
    10731065
Note: See TracChangeset for help on using the changeset viewer.