sys: Declare 'end' as an extern char[]

While here, remove an unused declaration.

Reviewed by:	jrtc27
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D53898
This commit is contained in:
John Baldwin
2026-02-24 21:20:59 -05:00
parent fba56be09f
commit 6513c2845f
4 changed files with 3 additions and 5 deletions
-2
View File
@@ -120,8 +120,6 @@ vm_offset_t vector_page;
/* The address at which the kernel was loaded. Set early in initarm(). */
vm_paddr_t arm_physmem_kernaddr;
extern int *end;
#ifdef FDT
vm_paddr_t pmap_pa;
vm_offset_t systempage;
+1 -1
View File
@@ -69,7 +69,7 @@
static char static_kenv[4096];
#endif
extern int *end;
extern char end[];
static uint32_t board_revision;
/* hex representation of uint64_t */
+1 -1
View File
@@ -53,7 +53,7 @@
#include <ddb/ddb.h>
#endif
extern int *end;
extern char end[];
static char *loader_envp;
#ifdef FDT
+1 -1
View File
@@ -118,7 +118,7 @@ uint32_t boot_hart = BOOT_HART_INVALID; /* The hart we booted on. */
cpuset_t all_harts;
extern int *end;
extern char end[];
static char static_kenv[PAGE_SIZE];