Hi all
Something wrong with "valloc" in the latest DJGPP (djcrx205.zip)
We need 1MB of VALLOCed space in flashrom, to map the legacy DOS area. As you can see, something is wrong with that.
Is there someone with DJGPP who could try?
#include <stdio.h> #include <stdlib.h> #include <malloc.h>
//void *valloc(size_t size); int main(void) { printf("VALLOC %lx\n", valloc(1024*1024)); /* Fails with 0 */ printf("MALLOC %lx\n", malloc(1024)); printf("MALLOC %lx\n", malloc(1024*1024)); printf("VALLOC %lx\n", valloc(1024)); /* Fails with 0 */ printf("MEMALIGN %lx\n", memalign(4096, 1024)); /* Fails with 0 */ printf("MEMALIGN %lx\n", memalign(64, 1024)); /* Fails with 0 */ printf("MEMALIGN %lx\n", memalign(32, 64)); }
Thanks Rudolf