struct boot_handoff
{
- size_t msize;
struct
{
size_t size;
struct
{
- ptr_t ksections;
- size_t size;
+ struct {
+ char* cmdline;
+ size_t len;
+ };
- char* cmdline;
- size_t len;
+ ptr_t dtb_pa;
} kexec;
struct
boot_end(struct boot_handoff*);
void
-boot_cleanup();
+boot_begin_arch_reserve(struct boot_handoff*);
+
+void
+boot_clean_arch_reserve(struct boot_handoff*);
+
+static inline bool
+free_memregion(struct boot_mmapent* mmapent)
+{
+ return !mmapent->type;
+}
+
+static inline bool
+reserved_memregion(struct boot_mmapent* mmapent)
+{
+ return !!(mmapent->type & BOOT_MMAP_RSVD);
+}
+
+static inline bool
+reclaimable_memregion(struct boot_mmapent* mmapent)
+{
+ return !!(mmapent->type & BOOT_MMAP_RCLM);
+}
+
#endif
#endif /* __LUNAIX_BOOT_GENERIC_H */