| delorie.com/archives/browse.cgi | search | 
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f | 
| Date: | Fri, 28 Dec 2001 11:45:10 -0700 | 
| From: | Bill Currie <bill AT taniwha DOT org> | 
| To: | djgpp AT delorie DOT com, philippe DOT meynard AT vendeeconcept DOT com | 
| Cc: | jeffw AT darwin DOT sfbr DOT org | 
| Subject: | Re: PB with bootloader's Bill Curie | 
| Message-ID: | <20011228184509.GA16364@taniwha.org> | 
| Mail-Followup-To: | Bill Currie <bill AT taniwha DOT org>, djgpp AT delorie DOT com, | 
| philippe DOT meynard AT vendeeconcept DOT com, jeffw AT darwin DOT sfbr DOT org | |
| References: | <a0fe13$jc7$1 AT wanadoo DOT fr> <20011228112456 DOT A18057 AT kendall DOT sfbr DOT org> | 
| Mime-Version: | 1.0 | 
| In-Reply-To: | <20011228112456.A18057@kendall.sfbr.org> | 
| User-Agent: | Mutt/1.3.24i | 
| Reply-To: | djgpp AT delorie DOT com | 
| Errors-To: | nobody AT delorie DOT com | 
| X-Mailing-List: | djgpp AT delorie DOT com | 
| X-Unsubscribes-To: | listserv AT delorie DOT com | 
On Fri, Dec 28, 2001 at 11:24:56AM -0600, JT Williams wrote:
> -: I unpack kernel.zip package of Bill Curie, its ok
> -: but, when I compile kernel I have the follow error:
> -: "as -o init.o init.s
> -: init.s : Assembler messages:
> -: init.s:128: Error: Values of -326 too large for field of 1 bytes at 0x145
> -: make.exe: *** [init.o] Error 1"
> -: And in the file init.s in line 128, I have :
> -: "jcxz    0"
> -: I used djgpp2.01 and I try with djgpp2.03 with the same error.
> -: Can you help me !!!
Looks like binutils has changed how it handles that
waitkb:
        xorl    %ecx,%ecx
1:      jmp     2f
2:      jcxz    3f
3:      inb     $0x64,%al
        testb   $2,%al
        loopnz  1b
        ret
ie, change the jmp (and jcxz) 0 to jmp label with a temp label immediately
following. There are a few other jumps that will need to be modified
similarly. One in read_cmos and one in start:
        jmp     0                   # flush the instruction pipeline
(that's the one in start as it's a little harder to find)
HTH
Bill
-- 
Leave others their otherness. -- Aratak
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |