| .. | .. |
|---|
| 2 | 2 | #include <unistd.h> |
|---|
| 3 | 3 | #include <stdio.h> |
|---|
| 4 | 4 | #include <string.h> |
|---|
| 5 | | -#include "util.h" |
|---|
| 5 | +#include <internal/lib.h> // page_size |
|---|
| 6 | 6 | #include "machine.h" |
|---|
| 7 | 7 | #include "api/fs/fs.h" |
|---|
| 8 | 8 | #include "debug.h" |
|---|
| .. | .. |
|---|
| 33 | 33 | } |
|---|
| 34 | 34 | |
|---|
| 35 | 35 | return 0; |
|---|
| 36 | | -} |
|---|
| 37 | | - |
|---|
| 38 | | -/* On s390 kernel text segment start is located at very low memory addresses, |
|---|
| 39 | | - * for example 0x10000. Modules are located at very high memory addresses, |
|---|
| 40 | | - * for example 0x3ff xxxx xxxx. The gap between end of kernel text segment |
|---|
| 41 | | - * and beginning of first module's text segment is very big. |
|---|
| 42 | | - * Therefore do not fill this gap and do not assign it to the kernel dso map. |
|---|
| 43 | | - */ |
|---|
| 44 | | -void arch__symbols__fixup_end(struct symbol *p, struct symbol *c) |
|---|
| 45 | | -{ |
|---|
| 46 | | - if (strchr(p->name, '[') == NULL && strchr(c->name, '[')) |
|---|
| 47 | | - /* Last kernel symbol mapped to end of page */ |
|---|
| 48 | | - p->end = roundup(p->end, page_size); |
|---|
| 49 | | - else |
|---|
| 50 | | - p->end = c->start; |
|---|
| 51 | | - pr_debug4("%s sym:%s end:%#lx\n", __func__, p->name, p->end); |
|---|
| 52 | 36 | } |
|---|