Mail Archives: djgpp/2001/12/28/13:48:28
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
- Raw text -