[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LCD-driver: head.S:582: Error: Illegal operands

Hi everybody, 
I followed instructions in the document "How to write Device Driver for
Linux", but 
I cannot compile kernel correctly. I would appreciate any idea what should I 
check out? Well, at least connecting the lcd-display should be not too
task according to circuit diagrams found in literature and internet. 
In axis/devboard_lx/os/linux I have made menuconfig and enabled "LCD 
(HD44780) Support". 
Parallel port support is deactivated. 
in /axis/devboard_lx/ directory I have made 
make tools 
make kernel 
after that I get error messages: 
-mlinux -nostdlib  -r -o kernel.o process.o signal.o entry.o traps.o
irq.o ptrace.o 
setup.o time.o sys_cris.o shadows.o debugport.o semaphore.o 
/usr/local/cris/lib/gcc-lib/cris/2.96/gcc -D__ASSEMBLY__ -D__KERNEL__ 
-I/home/jarmova/axis/devboard_lx/os/linux/include -mlinux -c head.S -o head.o 
head.S: Assembler messages: 
head.S:582: Error: Illegal operands 
make[2]: *** [head.o] Error 1 
make[2]: Leaving directory 
make[1]: *** [_dir_arch/cris/kernel] Error 2 
make[1]: Leaving directory `/home/jarmova/axis/devboard_lx/os/linux' 
make: *** [kernel] Error 2 
[root@jj2 devboard_lx]# 
Here is the part head.S file : 
#if defined(CONFIG_ETRAX_PARALLEL_PORT0) || \ 
        or.w    0x4,r0  ; parport 0 enabled using DMA 2/3 
	; parport 1 enabled using DMA 4/5 
	or.w	IO_STATE (R_GEN_CONFIG, par1, select),$r0 
#ifdef CONFIG_ETRAX_IDE  /*** THE LINE 582  ***/ 
	; DMA channels 2 and 3 to ATA, ATA enabled 
	or.d	  IO_STATE (R_GEN_CONFIG, dma3, ata)	\ 
		| IO_STATE (R_GEN_CONFIG, dma2, ata)	\ 
		| IO_STATE (R_GEN_CONFIG, ata, select),$r0 
What I am missing? 
Jarmo Väärälä