/**linux/arch/arm/lib/setbit.S**Copyright(C)1995-1996RussellKing**Thisprogramisfreesoftware; you can redistribute it and/or modify*itunderthetermsoftheGNUGeneralPublicLicenseversion2as*publishedbytheFreeSoftwareFoundation.*/#include <linux/linkage.h>#include <asm/assembler.h>.text/**Purpose:Functiontosetabit*Prototype:intset_bit(intbit,void*addr)*/ENTRY(_set_bit_be)eorr0,r0,#0x18@bigendianbyteorderingENTRY(_set_bit_le)andr2,r0,#7movr3,#1movr3,r3,lslr2save_and_disable_irqsip,r2ldrbr2,[r1,r0,lsr#3]orrr2,r2,r3strbr2,[r1,r0,lsr#3]restore_irqsipRETINSTR(mov,pc,lr)