OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr32988.c] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

enum zone_type {
  ZONE_DMA,
  ZONE_NORMAL,
  ZONE_MOVABLE,
  MAX_NR_ZONES
};
static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES];
static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES];
void free_area_init_nodes(unsigned long *max_zone_pfn)
{
  enum zone_type i;
  for (i = 1; i < MAX_NR_ZONES; i++)
  {
    if (i == ZONE_MOVABLE)
      continue;
    unsigned long _x = max_zone_pfn[i];
    unsigned long _y = arch_zone_lowest_possible_pfn[i];
    arch_zone_highest_possible_pfn[i] = _x > _y ? _x : _y;
  }
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.