/*
- * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2003-2019 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#define CORE_REMOTE_PORT 1069 /* hardwired, we can't really query the services file */
-#if CONFIG_EMBEDDED
+#if defined(__arm__) || defined(__arm64__)
/*
* xnu shared memory hardware debugger support
*
void panic_spin_shmcon(void);
-#endif /* CONFIG_EMBEDDED */
+#endif /* defined(__arm__) || defined(__arm64__) */
void kdp_panic_dump(void);
void begin_panic_transfer(void);
enum kern_dump_type {
KERN_DUMP_DISK, /* local, on device core dump */
KERN_DUMP_NET, /* kdp network core dump */
-#if CONFIG_EMBEDDED
+#if defined(__arm__) || defined(__arm64__)
KERN_DUMP_HW_SHMEM_DBG, /* coordinated hardware shared memory debugger core dump */
#endif
+ KERN_DUMP_STACKSHOT_DISK, /* local, stackshot on device coredump */
};
int kern_dump(enum kern_dump_type kd_variant);
int kern_dump_seek_to_next_file(void *kdp_core_out_varss, uint64_t next_file_offset);
-extern boolean_t efi_valid_page(ppnum_t ppn);
-#if defined(__x86_64__)
-#define EFI_VALID_PAGE(x) efi_valid_page(x)
-#elif defined(__arm__) || defined(__arm64__)
-#define EFI_VALID_PAGE(x) (FALSE)
-#endif /* defined (__x86_64__) */
+extern boolean_t bootloader_valid_page(ppnum_t ppn);
#endif /* PRIVATE */