diff options
author | Richard Braun <rbraun@sceen.net> | 2017-04-09 16:41:18 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-04-10 10:17:44 +0200 |
commit | 4fa47c00671f9bd9ff77e01236aaff0a0e5ada82 (patch) | |
tree | 6d9eac9642daecfd79fd615885b09c4b2862db20 /kern | |
parent | a6eb4749435c116e9f2611abb401959834ef805d (diff) |
Rename section end symbols
Diffstat (limited to 'kern')
-rw-r--r-- | kern/init.h | 2 | ||||
-rw-r--r-- | kern/percpu.c | 2 | ||||
-rw-r--r-- | kern/percpu.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kern/init.h b/kern/init.h index 6f33edc8..62fecf40 100644 --- a/kern/init.h +++ b/kern/init.h @@ -36,7 +36,7 @@ * Boundaries of the .init section. */ extern char _init; -extern char _einit; +extern char _init_end; #endif /* __ASSEMBLER__ */ diff --git a/kern/percpu.c b/kern/percpu.c index 6e0c77d0..ad007724 100644 --- a/kern/percpu.c +++ b/kern/percpu.c @@ -49,7 +49,7 @@ percpu_setup(void) struct vm_page *page; unsigned int order; - percpu_area_size = &_epercpu - &_percpu; + percpu_area_size = &_percpu_end - &_percpu; printk("percpu: max_cpus: %u, section size: %zuk\n", X15_MAX_CPUS, percpu_area_size >> 10); assert(vm_page_aligned(percpu_area_size)); diff --git a/kern/percpu.h b/kern/percpu.h index 73867472..59959518 100644 --- a/kern/percpu.h +++ b/kern/percpu.h @@ -42,7 +42,7 @@ * * Architecture-specific code must enforce that the percpu section starts * at 0, thereby making the addresses of percpu variables offsets into the - * percpu area. It must also make sure the _percpu and _epercpu symbols + * percpu area. It must also make sure the _percpu and _percpu_end symbols * have valid virtual addresses, included between _init (but not part of * the init section) and _end. * @@ -68,7 +68,7 @@ * itself has different addresses. */ extern char _percpu; -extern char _epercpu; +extern char _percpu_end; /* * Expands to the address of a percpu variable. |