chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Classify processes from sessions into cgroups
[elogind.git]
/
src
/
shared
/
gpt.h
diff --git
a/src/shared/gpt.h
b/src/shared/gpt.h
index 64090e0e9baaa3a8fc78bd03d33ae5f95304d2e7..add1df420f6160da847d1b637e067bed36caf922 100644
(file)
--- a/
src/shared/gpt.h
+++ b/
src/shared/gpt.h
@@
-19,6
+19,10
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#pragma once
+
+#include <endian.h>
+
#include "sd-id128.h"
/* We only support root disk discovery for x86, x86-64 and ARM for
#include "sd-id128.h"
/* We only support root disk discovery for x86, x86-64 and ARM for
@@
-42,10
+46,10
@@
# define GPT_ROOT_NATIVE GPT_ROOT_X86
#endif
# define GPT_ROOT_NATIVE GPT_ROOT_X86
#endif
-#if defined(__aarch64__) &&
!defined(WORDS_BIG
ENDIAN)
+#if defined(__aarch64__) &&
(__BYTE_ORDER != __BIG_
ENDIAN)
# define GPT_ROOT_NATIVE GPT_ROOT_ARM_64
# define GPT_ROOT_SECONDARY GPT_ROOT_ARM
# define GPT_ROOT_NATIVE GPT_ROOT_ARM_64
# define GPT_ROOT_SECONDARY GPT_ROOT_ARM
-#elif defined(__arm__) &&
!defined(WORDS_BIG
ENDIAN)
+#elif defined(__arm__) &&
(__BYTE_ORDER != __BIG_
ENDIAN)
# define GPT_ROOT_NATIVE GPT_ROOT_ARM
#endif
# define GPT_ROOT_NATIVE GPT_ROOT_ARM
#endif
@@
-55,3
+59,5
@@
* just because we saw no point in defining any other values here. */
#define GPT_FLAG_READ_ONLY (1ULL << 60)
#define GPT_FLAG_NO_AUTO (1ULL << 63)
* just because we saw no point in defining any other values here. */
#define GPT_FLAG_READ_ONLY (1ULL << 60)
#define GPT_FLAG_NO_AUTO (1ULL << 63)
+
+#define GPT_LINUX_GENERIC SD_ID128_MAKE(0f,c6,3d,af,84,83,47,72,8e,79,3d,69,d8,47,7d,e4)