Hi

I am new to kernel programming and have a question:


I see this sort of thing littered around the kernel code where GPIO
access is required:

*R_PORT_G_DATA = port_g_data_shadow |= SCK;

Is this safe with a preemptible kernel? If another task which uses the
global port_g_data_shadow gets jumped into in the middle of this
statement won't bad things happen (outputs corrupted etc.)?

Is it possible that a non-interrupt task would get jumped into?

My understanding of this issue may be flawed.

Tristan

Reply via email to