------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . B B . P R O T E C T I O N -- -- -- -- S p e c -- -- -- -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid -- -- Copyright (C) 2003-2004 The European Space Agency -- -- Copyright (C) 2003-2011, AdaCore -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNARL is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- . -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- -- The port of GNARL to bare board targets was initially developed by the -- -- Real-Time Systems Group at the Technical University of Madrid. -- -- -- ------------------------------------------------------------------------------ -- This package provides the functionality required to protect the data -- handled by the low level tasking system. pragma Restrictions (No_Elaboration_Code); package System.BB.Protection is pragma Preelaborate; Wakeup_Served_Entry_Callback : access procedure := null; -- Callback set by upper layer procedure Enter_Kernel; pragma Inline (Enter_Kernel); -- This procedure is executed to signal the access to kernel data. Its use -- protect the consistence of the kernel. Interrupts are disabled while -- kernel data is being accessed. procedure Leave_Kernel; -- Leave_Kernel must be called when the access to kernel data finishes. -- Interrupts are enable to the appropriate level (according to the active -- priority of the running thread). end System.BB.Protection;