From owner-freebsd-arm@freebsd.org Sat Dec 21 21:51:21 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A1581DD776 for ; Sat, 21 Dec 2019 21:51:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47gK7W6QXtz4fyW for ; Sat, 21 Dec 2019 21:51:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 7F_L3nYVM1ktfIcITvVKGix3c8IEWG9W0GdHf_SN0damM404hh6_lG7udb4iEdv Q9_IJLartZujX4nf4SRayRh5bGkseP2zBBIvV_b9gtLpT9EGHzSFB9mv4a2sYvT1hjyA3D2H980U rxkw0XB.4QGmrmolJufph2XBXC4X185dzHsg9FzS0xZnqXSOXA8axNDbADtigmeWB3j1EYDNjij1 KP4xjwZ12zgfmVbKJPCkHNoi1CONv64__Pa2X29lNSXY8WnvHKBK4e6H1dc3c_5Mds.ffsXWWls2 Xwpu9g.SqUD8gKvyo7Av0C20v.oU1x9L3tMW29K3EHR1dlNxBcjpUnc04rwDwp8wWULN9j3FEy4f NVpwK7HhvZdUgGVrFnX1szRhvarJ2IxwJDWRe.JwuiEIX9aqJHZ_JNon_gojLl98Lu2YqxKBMSR6 RsBEtKaNhdh6LIBSiT_Zd9BJBP11Z1oKP83LDHExr9wQb2Sjd9Q6u7W6rxXi1sAKQxMOCth0uVbU vAm.ggk0xh61QqWJ_3vJPzgjykhzzF5cf.aZXqcFpbZ50iLYzebNaynq517ibjGTtDv8b5y2F0nS QhtBanK8JdsX1FJT1VHoikVPX_FjxG_HaXCRFjYzBkDITh5UA9lzLxyjTqYAPIg1JWXHEvZW5lGQ 97gBKJdMcJWf5mDC0az75KJuLv.8ucIppnMPbS4Xr6SAXCaiDhflvGPCIkOL_o2hkMGtCP4n0L_m X4DUBTsY3f0Oi4QGnjJYUDKzkOIII9r1NcUxfSzwtrXdLsAVlMaQDHAgOFEM5ENeV8Ev7I80Hhr5 F0fBPMQ5pHFRrFuFjbvZQgugJEDC8jmsP2b7H399mz_3GIsc5flIBbolilSVhxFQZya0.NC7AQKT VoPAfZkPhctmGVCbIvTjXcF2s2O5LwZ2wemS77nxi_ALz7wznJRJ7t64Cvq0O3nuZW0sd.WFjTPi q6YBw6VfcOqovFxSVnHHm9dy1_1YanZAxo4s.WuwrDBYbhfpSlMk8vRfn43NywgSzJyAI5unG_ws xe5dhZ9WhE1YzFaA6w30I5eoyFZl9mEwy.f8qh6GmQDO8fjP_ZLcRXF7iwMsE6gSpK_4nZrifB30 Wc.MB_tgym6RuyXD2Zau.heKYb7ZSEZacRrZdWYLqHsGQQhsvaZUGlo_kO.yj3xhH1KlDMljvGhx yiF.sBMHzj74MsgS0j_01KSWNa7zVF7z7wDb7K7vWIpsIcW8iR8KAaJ3P.FkW37jiHTwiZriHeE0 4SVIm1rRtQOLniYA0nCsrXzmiV2yIzIvMBmIhyg.kBU.HVkUXjgE7lbqxezqVUkplL4oM8CaIiKh Qi13dwXbK44U2x_yV5a9XTtNYAbJ63pKdefwmOd_l2TvULQDfpy7ZmvispCnaBg_aOOXSYJdDnDJ .uNS6EYmuLAcdF8TjbEe7yjfA3xMdJ9EwnKQ- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 21 Dec 2019 21:51:17 +0000 Received: by smtp424.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 5f44cd1f0bf65cb059ed75cf14881f22; Sat, 21 Dec 2019 21:51:15 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: devel/freebsd-gcc9@aarch64 and devel/binutils@aarch64: locore.S vs. gcc toolchain notational mismatch (icc_sre_el2) Message-Id: <37D45724-F490-420E-B33E-3FD165D4FC53@yahoo.com> Date: Sat, 21 Dec 2019 13:51:15 -0800 To: FreeBSD Toolchain , freebsd-arm X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <37D45724-F490-420E-B33E-3FD165D4FC53.ref@yahoo.com> X-Rspamd-Queue-Id: 47gK7W6QXtz4fyW X-Spamd-Bar: / X-Spamd-Result: default: False [-0.41 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.28)[-0.277,0]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.37)[0.369,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[84.68.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (7.96), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2019 21:51:21 -0000 /usr/src/sys/arm64/arm64/locore.S: Assembler messages: /usr/src/sys/arm64/arm64/locore.S:282: Error: unknown or missing system = register name at operand 2 -- `mrs x2,icc_sre_el2' /usr/src/sys/arm64/arm64/locore.S:285: Error: unknown or missing system = register name at operand 1 -- `msr icc_sre_el2,x2' *** [locore.o] Error code 1 make[2]: stopped in = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/sys/= GENERIC-NODBG .ERROR_TARGET=3D'locore.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/arm64.aarch64/sys/GENERIC-NODBG/locore.o.meta' .MAKE.LEVEL=3D'2' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose curdirOk=3Dyes' _ERROR_CMD=3D'/usr/local/bin/aarch64-unknown-freebsd13.0-gcc9 = -mcpu=3Dcortex-a53 = --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp -B/usr/local/aarch64-unknown-freebsd13.0/bin/ -c -x = assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys = -I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt = -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h = -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer = -fdebug-prefix-map=3D./machine=3D/usr/src/sys/arm64/include = -mgeneral-regs-only -ffixed-x18 -ffreestanding -fwrapv -fstack-protector = -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef = -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Daddress = -Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds = -Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare = -Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow= -Wno-error=3Dsequence-point -Wno-unused-but-set-variable = -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare = -Wno-error=3Dshift-overflow -Wno-error=3Dtautological-compare = -Wno-error=3Dstringop-overflow -Wno-error=3Dmemset-elt-size = -Wno-error=3Dpacked-not-aligned -Wno-address-of-packed-member = -Wno-format-zero-length -v -fno-common -fms-extensions = -finline-limit=3D8000 --param inline-unit-growth=3D100 --param = large-function-growth=3D1000 -fms-extensions -std=3Diso9899:1999 = -Werror /usr/src/sys/arm64/arm64/locore.S;' = .CURDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG' FYI: # grep -U5 icc_sre_el2 /usr/src/sys/arm64/arm64/locore.S ubfx x2, x2, #ID_AA64PFR0_GIC_SHIFT, #ID_AA64PFR0_GIC_BITS /* GIC[3:0] =3D=3D 0001 - GIC CPU interface via special regs. = supported */ cmp x2, #(ID_AA64PFR0_GIC_CPUIF_EN >> ID_AA64PFR0_GIC_SHIFT) b.ne 2f mrs x2, icc_sre_el2 orr x2, x2, #ICC_SRE_EL2_EN /* Enable access from insecure = EL1 */ orr x2, x2, #ICC_SRE_EL2_SRE /* Enable system = registers */ msr icc_sre_el2, x2 2: /* Set the address to return to our return address */ msr elr_el2, x30 isb (devel/freebsd-gcc6 likely has the same status.) The context was head -r355976 based. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)