Date: Mon, 11 Nov 2019 14:07:11 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r354608 - stable/12/sys/dev/ksyms Message-ID: <201911111407.xABE7Bv6074726@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Mon Nov 11 14:07:11 2019 New Revision: 354608 URL: https://svnweb.freebsd.org/changeset/base/354608 Log: MFC r353935, r354402: Set OBJ_NOSPLIT on the ksyms(4) VM object. Modified: stable/12/sys/dev/ksyms/ksyms.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/ksyms/ksyms.c ============================================================================== --- stable/12/sys/dev/ksyms/ksyms.c Mon Nov 11 06:28:25 2019 (r354607) +++ stable/12/sys/dev/ksyms/ksyms.c Mon Nov 11 14:07:11 2019 (r354608) @@ -397,6 +397,7 @@ ksyms_open(struct cdev *dev, int flags, int fmt __unus { struct tsizes ts; struct ksyms_softc *sc; + vm_object_t object; vm_size_t elfsz; int error, try; @@ -434,8 +435,9 @@ ksyms_open(struct cdev *dev, int flags, int fmt __unus ksyms_size_calc(&ts); elfsz = sizeof(struct ksyms_hdr) + ts.ts_symsz + ts.ts_strsz; - sc->sc_obj = vm_object_allocate(OBJT_DEFAULT, + object = vm_object_allocate(OBJT_PHYS, OFF_TO_IDX(round_page(elfsz))); + sc->sc_obj = object; sc->sc_objsz = elfsz; error = ksyms_snapshot(sc, &ts);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911111407.xABE7Bv6074726>