diff options
author | zbb <zbb@FreeBSD.org> | 2017-06-16 13:53:02 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-09-06 13:44:30 -0500 |
commit | c152b8d88c07d09d2340e914ddfe5cd6db6b39e6 (patch) | |
tree | ebdb6673f4c2d1fdbc1ede49cf929f4af9849567 /sys/arm/arm | |
parent | c0e1d8f20809b73954a9128aba36ffce47e93218 (diff) | |
download | FreeBSD-src-c152b8d88c07d09d2340e914ddfe5cd6db6b39e6.zip FreeBSD-src-c152b8d88c07d09d2340e914ddfe5cd6db6b39e6.tar.gz |
Minor style improvements to pmap_remap_vm_attr()
Use correct platform_ function name in the comment and remove
redundant tabs.
(cherry picked from commit 42b0dad3ee3dc59d7fcbd3b2d709cd2ba6f424da)
Diffstat (limited to 'sys/arm/arm')
-rw-r--r-- | sys/arm/arm/pmap-v6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c index 6d11fcf..10fdf50 100644 --- a/sys/arm/arm/pmap-v6.c +++ b/sys/arm/arm/pmap-v6.c @@ -507,7 +507,7 @@ pmap_set_tex(void) * Usage rules: * - it shall be called after pmap_bootstrap_prepare() and before * cpu_mp_start() (thus only on boot CPU). In practice, it's expected - * to be called from platform_attach() or platform_late_init(). + * to be called from platform_probe_and_attach() or platform_late_init(). * * - if remapping doesn't change caching mode, or until uncached class * is remapped to any kind of cached one, then no other restriction exists. @@ -522,11 +522,11 @@ void pmap_remap_vm_attr(vm_memattr_t old_attr, vm_memattr_t new_attr) { int old_idx, new_idx; - + /* Map VM memattrs to indexes to tex_class table. */ old_idx = pte2_attr_tab[(int)old_attr]; new_idx = pte2_attr_tab[(int)new_attr]; - + /* Replace TEX attribute and apply it. */ tex_class[old_idx] = tex_class[new_idx]; pmap_set_tex(); |