On 16.01.23 07:33, Zhu Zhongjie wrote:
From: Zhongjie Zhu<zhongjiez...@gmail.com>

when Acquires an ISR lock in SMP system, it first call _ISR_Local_disable()
to disable ISR, this is the same with in UP system, so we could
use the same isr_level in ISR_lock_Context, this change will also save 4 Bytes
of SMP_lock_Context.

I don't think we should change the existing implementation which separates the uniprocessor and SMP-specific parts. This patch mixes things together.

It is not necessary to save four bytes in SMP_lock_Context since this structure is almost always allocated on the stack.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to