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

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




> From:	owner-dev-etrax@xxxxxxx.fi
> Sent:	Tue 2/3/2004 1:15 AM
> To:	dev-etrax
> Cc:	
> Subject:	LCD-driver: head.S:582: Error: Illegal operands
 
> 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
> difficult 
> 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. 
 
> #if defined(CONFIG_ETRAX_PARALLEL_PORT0) || \ 
>      defined(CONFIG_ETRAX_ETHERNET_LPSLAVE) || \ 
>      defined(CONFIG_ETRAX_LCD_HD44780) 
>        or.w    0x4,r0  ; parport 0 enabled using DMA 2/3 
> #endif 

You need to prefix the register names with '$', i.e. change "r0" to "$r0".