diff options
author | andrew <andrew@FreeBSD.org> | 2014-02-09 15:54:31 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2014-02-09 15:54:31 +0000 |
commit | 22ac5f84111be7cfcaecf95afaa8dee4859c38ac (patch) | |
tree | 7122df4151bfe06ea2bbb44087a78b6211fd900b /sys/arm/include | |
parent | 85ab9dc838da03c562e924c8d34bf6cfa0761ab8 (diff) | |
download | FreeBSD-src-22ac5f84111be7cfcaecf95afaa8dee4859c38ac.zip FreeBSD-src-22ac5f84111be7cfcaecf95afaa8dee4859c38ac.tar.gz |
Pass the pagetable used from locore.S to initarm to allow it to map data
in as required.
Diffstat (limited to 'sys/arm/include')
-rw-r--r-- | sys/arm/include/cpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arm/include/cpu.h b/sys/arm/include/cpu.h index 88dbcdb..c6f7088 100644 --- a/sys/arm/include/cpu.h +++ b/sys/arm/include/cpu.h @@ -35,6 +35,11 @@ get_cyclecount(void) extern vm_offset_t vector_page; +/* + * Params passed into initarm. If you change the size of this you will + * need to update locore.S to allocate more memory on the stack before + * it calls initarm. + */ struct arm_boot_params { register_t abp_size; /* Size of this structure */ register_t abp_r0; /* r0 from the boot loader */ @@ -42,6 +47,7 @@ struct arm_boot_params { register_t abp_r2; /* r2 from the boot loader */ register_t abp_r3; /* r3 from the boot loader */ vm_offset_t abp_physaddr; /* The kernel physical address */ + vm_offset_t abp_pagetable; /* The early page table */ }; void arm_vector_init(vm_offset_t, int); |