2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
8 * Defines the notion of a code segment.
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_SEGMENT_H_
12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_SEGMENT_H_
14 #include "native_client/src/trusted/validator/types_memory_model.h"
18 /* Model of a code segment. */
19 typedef struct NaClSegment {
20 /* Points the the beginning of the sequence of bytes in the code segment. */
22 /* Defines the virtual pc value associated with the beginning
23 * of the code segment.
26 /* The number of bytes in the code segment. */
30 /* Initializes the given code segment with the given values. */
31 void NaClSegmentInitialize(
35 NaClSegment* segment);
39 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NC_SEGMENT_H_ */