URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32/trunk/stdalone/mkpart/mkptbl
- from Rev 18 to Rev 259
- ↔ Reverse comparison
Rev 18 → Rev 259
/mkptbl.c
17,9 → 17,9
|
|
typedef struct { |
unsigned long type; |
unsigned long start; |
unsigned long size; |
unsigned int type; |
unsigned int start; |
unsigned int size; |
char descr[DESCR_SIZE]; |
} PartEntry; |
|
38,7 → 38,7
} |
|
|
void convertNumber(unsigned char *p, unsigned long val) { |
void convertNumber(unsigned char *p, unsigned int val) { |
*(p + 0) = val >> 24; |
*(p + 1) = val >> 16; |
*(p + 2) = val >> 8; |
59,10 → 59,10
} |
|
|
int parseNumber(char **pc, unsigned long *pi) { |
int parseNumber(char **pc, unsigned int *pi) { |
char *p; |
unsigned int base, dval; |
unsigned long n; |
unsigned int n; |
|
p = *pc; |
while (*p == ' ' || *p == '\t') { |
150,12 → 150,12
char line[LINE_SIZE]; |
char *p; |
int lineNumber; |
unsigned long partNum; |
unsigned long bootable; |
unsigned long partType; |
unsigned long partStart; |
unsigned long partLast; |
unsigned long partSize; |
unsigned int partNum; |
unsigned int bootable; |
unsigned int partType; |
unsigned int partStart; |
unsigned int partLast; |
unsigned int partSize; |
char descr[LINE_SIZE]; |
|
/* check command line arguments */ |
251,7 → 251,7
} else { |
partLast = 0; |
} |
printf("%2lu %s 0x%08lX 0x%08lX 0x%08lX 0x%08lX %s\n", |
printf("%2u %s 0x%08X 0x%08X 0x%08X 0x%08X %s\n", |
partNum, |
ptr[partNum].type & 0x80000000 ? "*" : " ", |
ptr[partNum].type & 0x7FFFFFFF, |
/Makefile
8,7 → 8,7
./mkptbl disk.part parttbl |
|
mkptbl: mkptbl.c |
gcc -m32 -g -Wall -o mkptbl mkptbl.c |
gcc -g -Wall -o mkptbl mkptbl.c |
|
clean: |
rm -f *~ mkptbl parttbl |