s390/flags: fix flag handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 6 Oct 2015 14:23:29 +0000 (16:23 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:14 +0000 (14:32 +0200)
commitac25e790d9c3c9b5d34609b7dc1d60c09494c668
tree1ea07858e445c49e5529f2058977ed95b751c015
parentdb7e007fd61ca07e5f3b04cf2168531b074d318d
s390/flags: fix flag handling

The cpu flags and pt_regs flags fields are each 64 bits in size. A flag can
be set with helper functions like set_cpu_flags().

These functions create a mask using "1U << flag". This doesn't work if flag
is larger than 31, since 1U << 32 == 0.

So fix this in case we ever will have such flag numbers.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/include/asm/ptrace.h
This page took 0.040879 seconds and 5 git commands to generate.