19 lines
503 B
C++
19 lines
503 B
C++
|
|
#pragma once
|
|
|
|
#if !defined(BAD_APPLE_OS_SEGMENTS_HPP_INCLUDED)
|
|
#define BAD_APPLE_OS_SEGMENTS_HPP_INCLUDED
|
|
|
|
#include <cstdint>
|
|
|
|
namespace baos
|
|
{
|
|
inline constexpr std::uint16_t SEGIDX_KERNEL_CODE = 1 << 3;
|
|
inline constexpr std::uint16_t SEGIDX_KERNEL_DATA = 2 << 3;
|
|
inline constexpr std::uint16_t SEGIDX_USER_CODE = 4 << 3;
|
|
inline constexpr std::uint16_t SEGIDX_USER_DATA = 3 << 3;
|
|
inline constexpr std::uint16_t SEGIDX_TSS = 5 << 3;
|
|
}
|
|
|
|
#endif // !defined(BAD_APPLE_OS_SEGMENTS_HPP_INCLUDED)
|