From 22b405e987097b0cb63335b68131f9c500df1e18 Mon Sep 17 00:00:00 2001 From: schulz Date: Tue, 4 Sep 2007 22:04:49 +0000 Subject: [PATCH] 1. Disabled debug. InitCode is less noisy right now :) 2. Using the highest bit to indicate another list of residents is dangerous. Use the lowest bit instead. git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@26489 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/x86_64-pc/exec/initcode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86_64-pc/exec/initcode.c b/arch/x86_64-pc/exec/initcode.c index 6c9f235bb..e87ca506c 100644 --- a/arch/x86_64-pc/exec/initcode.c +++ b/arch/x86_64-pc/exec/initcode.c @@ -8,7 +8,7 @@ #include "exec_intern.h" #include #include -#define DEBUG 1 +#define DEBUG 0 #include /***************************************************************************** @@ -58,10 +58,10 @@ while(*list) { /* - If bit 31 is set, this doesn't point to a Resident module, but + If bit 0 is set, this doesn't point to a Resident module, but to another list of modules. */ - if(*list & 0x8000000000000000) list = (IPTR *)(*list & 0x7fffffffffffffff); + if(*list & 0x0000000000000001) list = (IPTR *)(*list & 0xfffffffffffffffe); if( (((struct Resident *)*list)->rt_Version >= (UBYTE)version) && (((struct Resident *)*list)->rt_Flags & (UBYTE)startClass) ) -- 2.11.4.GIT