On Tue, Mar 24, 2009 at 08:10:07PM +0000, [email protected] wrote:
> Ok back home and had another hour or so tinkering with haret.
> 
> Compiling the cvs haret sources (with and without modifying
> PHYSOFFSET_INITRD) gave the same results as before, the older kernel
> booted fine but the newer kernel still failed without using the
> modified haret versions.
> 
> So any more ideas would be welcome.

Can you try after applying the patch below?

-Kevin


--- src/memory.cpp      27 Sep 2008 00:47:14 -0000      1.42
+++ src/memory.cpp      24 Mar 2009 23:25:59 -0000
@@ -750,6 +750,10 @@
 allocPages(struct pageAddrs *pages, int pageCount)
 {
     int pageBytes = pageCount * PAGE_SIZE;
+#if 1
+    void *data = VirtualAlloc(NULL, pageBytes, MEM_COMMIT, PAGE_READWRITE);
+    int ret = 1;
+#else
     HANDLE h = CreateFileMapping(
         (HANDLE)INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,
         0, pageBytes, NULL);
@@ -761,6 +765,7 @@
 
     void *data = MapViewOfFile(h, FILE_MAP_WRITE, 0, 0, 0);
     int ret = CloseHandle(h);
+#endif
     if (!data) {
         Output(C_ERROR "Failed to map %d pages (code %ld)"
                , pageCount, GetLastError());

_______________________________________________
Haret mailing list
[email protected]
https://handhelds.org/mailman/listinfo/haret

Reply via email to