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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [mkpart/] [mkmboot/] [stage2/] [mboot.c] - Diff between revs 106 and 259

Show entire file | Details | Blame | View Log

Rev 106 Rev 259
Line 21... Line 21...
unsigned int startSector = 0;    /* gets loaded by previous stage */
unsigned int startSector = 0;    /* gets loaded by previous stage */
unsigned int numSectors = 0;     /* gets loaded by previous stage */
unsigned int numSectors = 0;     /* gets loaded by previous stage */
 
 
 
 
typedef struct {
typedef struct {
  unsigned long type;
  unsigned int type;
  unsigned long start;
  unsigned int start;
  unsigned long size;
  unsigned int size;
  char descr[DESCR_SIZE];
  char descr[DESCR_SIZE];
} PartEntry;
} PartEntry;
 
 
PartEntry ptr[NPE];
PartEntry ptr[NPE];
 
 
Line 100... Line 100...
  }
  }
  line[n - 1] = '\0';
  line[n - 1] = '\0';
}
}
 
 
 
 
int countPrintn(long n) {
int countPrintn(int n) {
  long a;
  int a;
  int res;
  int res;
 
 
  res = 0;
  res = 0;
  if (n < 0) {
  if (n < 0) {
    res++;
    res++;
Line 117... Line 117...
  }
  }
  return res + 1;
  return res + 1;
}
}
 
 
 
 
void printn(long n) {
void printn(int n) {
  long a;
  int a;
 
 
  if (n < 0) {
  if (n < 0) {
    putchar('-');
    putchar('-');
    n = -n;
    n = -n;
  }
  }

powered by: WebSVN 2.1.0

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