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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr32988.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
enum zone_type {
2
  ZONE_DMA,
3
  ZONE_NORMAL,
4
  ZONE_MOVABLE,
5
  MAX_NR_ZONES
6
};
7
static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES];
8
static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES];
9
void free_area_init_nodes(unsigned long *max_zone_pfn)
10
{
11
  enum zone_type i;
12
  for (i = 1; i < MAX_NR_ZONES; i++)
13
  {
14
    if (i == ZONE_MOVABLE)
15
      continue;
16
    unsigned long _x = max_zone_pfn[i];
17
    unsigned long _y = arch_zone_lowest_possible_pfn[i];
18
    arch_zone_highest_possible_pfn[i] = _x > _y ? _x : _y;
19
  }
20
}

powered by: WebSVN 2.1.0

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