Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
RayeR(R)

Homepage

CZ,
30.12.2017, 02:17
 

flashrom v0.9.9-91 (Announce)

Hi,
my friend Ruik patched new version of flashrom to compile under DOS/DJGPP 2.05
http://flashrom.org/DOS
I tested it on my SPI HW and onboard flash.
He also found a bug in djgpp valloc() that returns NULL for larger block while malloc() works. Older DJGPP libc 2.04 doesn't suffer by this bug. It was already reported on DJGPP forum and even there's a patch applied in Arch Linux DJGPP crosscompiler package but we are missing djdev-205 binary patched package...

---
DOS gives me freedom to unlimited HW access.

RayeR(R)

Homepage

CZ,
11.01.2018, 12:46

@ RayeR

new DJDEV 2.05 build from CVS with fixed valloc()

I recompiled current DJDEV 2.05 from CVS that contains fixed valloc() - it seems to work. Download here.

---
DOS gives me freedom to unlimited HW access.

Laaca(R)

Homepage

Czech republic,
11.01.2018, 21:57

@ RayeR

new DJDEV 2.05 build from CVS with fixed valloc()

Just for curiosity: what is the difference between malloc and valloc?

---
DOS-u-akbar!

RayeR(R)

Homepage

CZ,
11.01.2018, 22:26

@ Laaca

new DJDEV 2.05 build from CVS with fixed valloc()

> Just for curiosity: what is the difference between malloc and valloc?

valloc ensures the allocated block is page-aligned. It's needed e.g. for some buffers where HW has such limitation that buffer must start on aligned address. Flashrom/libpci use valloc. Valloc was OK in DJDEV 2.04 and then was broken in 2.05, later fixed in CVS-only.

---
DOS gives me freedom to unlimited HW access.

Back to the board
Thread view  Mix view  Order
15317 Postings in 1383 Threads, 254 registered users, 17 users online (0 registered, 17 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum