xref: /llvm-project/compiler-rt/lib/scudo/standalone/fuchsia.h (revision a27b9139ab1bbdc93afaf240de2c2b9e45092884)
147558565SKostya Kortchinsky //===-- fuchsia.h -----------------------------------------------*- C++ -*-===//
247558565SKostya Kortchinsky //
347558565SKostya Kortchinsky // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
447558565SKostya Kortchinsky // See https://llvm.org/LICENSE.txt for license information.
547558565SKostya Kortchinsky // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
647558565SKostya Kortchinsky //
747558565SKostya Kortchinsky //===----------------------------------------------------------------------===//
847558565SKostya Kortchinsky 
947558565SKostya Kortchinsky #ifndef SCUDO_FUCHSIA_H_
1047558565SKostya Kortchinsky #define SCUDO_FUCHSIA_H_
1147558565SKostya Kortchinsky 
1247558565SKostya Kortchinsky #include "platform.h"
1347558565SKostya Kortchinsky 
1447558565SKostya Kortchinsky #if SCUDO_FUCHSIA
1547558565SKostya Kortchinsky 
16*a27b9139SRoland McGrath #include <stdint.h>
17*a27b9139SRoland McGrath #include <zircon/types.h>
1847558565SKostya Kortchinsky 
1947558565SKostya Kortchinsky namespace scudo {
2047558565SKostya Kortchinsky 
2147558565SKostya Kortchinsky struct MapPlatformData {
2247558565SKostya Kortchinsky   zx_handle_t Vmar;
2347558565SKostya Kortchinsky   zx_handle_t Vmo;
2447558565SKostya Kortchinsky   uintptr_t VmarBase;
2547558565SKostya Kortchinsky   uint64_t VmoSize;
2647558565SKostya Kortchinsky };
2747558565SKostya Kortchinsky 
2847558565SKostya Kortchinsky } // namespace scudo
2947558565SKostya Kortchinsky 
3047558565SKostya Kortchinsky #endif // SCUDO_FUCHSIA
3147558565SKostya Kortchinsky 
3247558565SKostya Kortchinsky #endif // SCUDO_FUCHSIA_H_
33