2009-06-18 02:45:48 +08:00
|
|
|
/****************************************************************************
|
|
|
|
* binfmt/binfmt_globals.c
|
|
|
|
*
|
2024-09-09 15:12:59 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
2021-02-03 21:47:23 +08:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2009-06-18 02:45:48 +08:00
|
|
|
*
|
2021-02-03 21:47:23 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2009-06-18 02:45:48 +08:00
|
|
|
*
|
2021-02-03 21:47:23 +08:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2009-06-18 02:45:48 +08:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
2023-07-03 00:11:02 +08:00
|
|
|
#include "binfmt.h"
|
2009-06-18 02:45:48 +08:00
|
|
|
|
2009-06-18 05:15:31 +08:00
|
|
|
#ifndef CONFIG_BINFMT_DISABLE
|
|
|
|
|
2009-06-18 02:45:48 +08:00
|
|
|
/****************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
2020-04-22 16:24:15 +08:00
|
|
|
/* This is a list of registered handlers for different binary formats.
|
|
|
|
* This list should only be accessed by normal user programs. It should be
|
|
|
|
* sufficient protection to simply disable pre-emption when accessing this
|
|
|
|
* list.
|
2009-06-18 02:45:48 +08:00
|
|
|
*/
|
|
|
|
|
2020-02-03 13:18:17 +08:00
|
|
|
FAR struct binfmt_s *g_binfmts;
|
2009-06-18 02:45:48 +08:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Private Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
2009-06-18 05:15:31 +08:00
|
|
|
/****************************************************************************
|
2009-06-18 02:45:48 +08:00
|
|
|
* Public Functions
|
2009-06-18 05:15:31 +08:00
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* CONFIG_BINFMT_DISABLE */
|