Merge "apps: Extract crt0 from C apps"

GitOrigin-RevId: af8b6e41c39a9d5d0b85cb5f7b66d986e1bc3cf9
This commit is contained in:
June Tate-Gans
2022-08-30 17:33:53 +00:00
committed by Sam Leffler
parent 13799ab779
commit 6ee08d8b47
17 changed files with 408 additions and 200 deletions

19
apps/c/libkata/globals.c Normal file
View File

@@ -0,0 +1,19 @@
// Copyright 2022 Google LLC
//
// Licensed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// 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.
#include <kata.h>
#include <kernel/gen_config.h>
#include <sel4/arch/syscalls.h>
__thread seL4_IPCBuffer *__sel4_ipc_buffer;