Convert ksyms(4) to use an OBJT_PHYS object.
The pages stored in the ksyms object are not pageable. Moreover, this obviates the need to set OBJ_NOSPLIT. Reviewed by: alc, kib MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22229
This commit is contained in:
parent
9999fa1cd0
commit
7e7876c7d9
@ -442,9 +442,8 @@ ksyms_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td)
|
||||
ksyms_size_calc(&ts);
|
||||
elfsz = sizeof(struct ksyms_hdr) + ts.ts_symsz + ts.ts_strsz;
|
||||
|
||||
object = vm_object_allocate(OBJT_DEFAULT,
|
||||
object = vm_object_allocate(OBJT_PHYS,
|
||||
OFF_TO_IDX(round_page(elfsz)));
|
||||
vm_object_set_flag(object, OBJ_NOSPLIT);
|
||||
sc->sc_obj = object;
|
||||
sc->sc_objsz = elfsz;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user