Move the kernphys declaration to machine/md_var.h.
Apparently machinde/cpu.h is supposed to contain MD implementations of MI interfaces. Also, remove kernphys declaration from machdep.c, since it is already provided by md_var.h. Requested and reviewed by: bde MFC after: 13 days
This commit is contained in:
parent
d57a913b89
commit
af04296ad4
@ -187,12 +187,6 @@ struct init_ops init_ops = {
|
||||
.msi_init = msi_init,
|
||||
};
|
||||
|
||||
/*
|
||||
* The file "conf/ldscript.amd64" defines the symbol "kernphys". Its value is
|
||||
* the physical address at which the kernel is loaded.
|
||||
*/
|
||||
extern char kernphys[];
|
||||
|
||||
/*
|
||||
* Physical address of the EFI System Table. Stashed from the metadata hints
|
||||
* passed into the kernel and used by the EFI code to call runtime services.
|
||||
|
@ -70,7 +70,6 @@ struct cpu_ops {
|
||||
extern struct cpu_ops cpu_ops;
|
||||
extern char btext[];
|
||||
extern char etext[];
|
||||
extern char kernphys[];
|
||||
|
||||
/* Resume hook for VMM. */
|
||||
extern void (*vmm_resume_p)(void);
|
||||
|
@ -39,6 +39,12 @@
|
||||
extern uint64_t *vm_page_dump;
|
||||
extern int hw_lower_amd64_sharedpage;
|
||||
|
||||
/*
|
||||
* The file "conf/ldscript.amd64" defines the symbol "kernphys". Its
|
||||
* value is the physical address at which the kernel is loaded.
|
||||
*/
|
||||
extern char kernphys[];
|
||||
|
||||
struct savefpu;
|
||||
struct sysentvec;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user