From owner-freebsd-current@freebsd.org Mon Feb 19 22:32:57 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34C2DF04FAE for ; Mon, 19 Feb 2018 22:32:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB4C16FFA2 for ; Mon, 19 Feb 2018 22:32:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22d.google.com with SMTP id p188so12848711ioe.12 for ; Mon, 19 Feb 2018 14:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=49ryWu0Twm6h/WzppGkp3rnoSDzTwUDA99eqvLs9nxo=; b=WgkpQqQ5aTNanMJijPgaN4coyM206PvL+/daUDXyZ9ISOlDKGuuF201W3IlIfePcO4 UAPEi5RyYKZ4ctmUBpIHKY+CBOs7M67nn7XaunLAqDOT8dOtZry04Zzw/e151mWJmovH /IdvtydpPPlpvOcV3/3cJpbTkir2JZwkHyquYY/wFz5bg0l2YBr3qG5aj6ySohj6qqgd sKd5DMNVILPHOvh/S3aOSU7xrpdx0Of5WfmfvtS6s4UMIG3oD3xHYCvmR2SWFyNr6BbK brLKMNDmk9H+2iejaA4sC42jKo7PeEAMprYNRbI0GxDKf3PGoR1CmBW4podLwuaRu2Bp 7cAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=49ryWu0Twm6h/WzppGkp3rnoSDzTwUDA99eqvLs9nxo=; b=COJuyJ1n+wAqxaGWjFo2gGFjlbEr9PwleJvxbyVin1U4bGmIxdEkQOM4b0kMCHAtqy 3NiGQgOa20u/wq5mdanT3bpDYLn//MvBZOwcBqnxQW61bWb2ihqRm0EDGSawHVHoT5Qc tOQ+zypNMwhDW8n2G9cO4w7iIZQHKvM50pR9mE2u8LsccDi0oKptG711rCZmOUjyTBC4 doweu92CYYarW3GVUa/FPgtbTCfNJa9eW/h0CWrfRMDZnqGuOF1Tr3sEWb0mLUPX5Qjo EhhzFA+dk70/+UGYJXp19CUufpbnA7PhwmmytuU3JAm0Jq0kM1ixyoTRFI0ceoPucUSL Z/Aw== X-Gm-Message-State: APf1xPDMCAg+fWNHJNK4XxAEbwKo46NJUFZnGqR1NW/J076rRHKt/Gni 5z0CDIEkD31OFDEleMVRlfkc3f95cngKwXfRX7emFQ== X-Google-Smtp-Source: AH8x224qqjMHY3181GaTtVO4u3sTIql6+0ndUa9xF0lwzlOvxJgMHO46Aifl0iEpUzWeS5aYlDQOxbrGsoTEEBfrbrk= X-Received: by 10.107.2.6 with SMTP id 6mr21337147ioc.117.1519079575934; Mon, 19 Feb 2018 14:32:55 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.201.67 with HTTP; Mon, 19 Feb 2018 14:32:55 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <6EB9705C-92AC-4952-B1F6-642DCD4701F1@freebsd.org> References: <2AFF3AE4-8740-4776-9D8D-7D709EE051C6@gmail.com> <1b9e58fe-2616-b04b-13c2-fee78a33ad6e@club.fr> <6EB9705C-92AC-4952-B1F6-642DCD4701F1@freebsd.org> From: Warner Losh Date: Mon, 19 Feb 2018 15:32:55 -0700 X-Google-Sender-Auth: hFLaYUdY-seyFLGRAF1e-8PDBBA Message-ID: Subject: Re: ACPI panic on boot with new Lua loader and other minor issues To: Devin Teske Cc: Kyle Evans , =?UTF-8?Q?Juan_Ram=C3=B3n_Molina_Menor?= , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Feb 2018 22:32:57 -0000 On Mon, Feb 19, 2018 at 2:57 PM, Devin Teske wrote: > > > > On Feb 19, 2018, at 2:21 PM, Kyle Evans wrote: > > > > It seems that the Forth loader might be doing something sneaky and > > replacing the standard common "boot" with a Forth boot that handles > > this a lot better. CC'ing dteske@ so they can confirm. > > I can indeed confirm this as fact. > > Not able to help much because I am driving cross-country (San Francisco to > Orlando) right now with the spouse and dog. > > We get back March 3rd, but I will be checking-in from time to time for > sporadic responses during downtime. > The command in loader.4th is defined as: : boot 0= if ( interpreted ) get_arguments then \ Unload only if a path was passed dup if >r over r> swap c@ [char] - <> if 0 1 unload drop else s" kernelname" getenv? if ( a kernel has been loaded ) try-menu-unset bootmsg 1 boot exit then load_kernel_and_modules ?dup if exit then try-menu-unset bootmsg 0 1 boot exit then else s" kernelname" getenv? if ( a kernel has been loaded ) try-menu-unset bootmsg 1 boot exit then load_kernel_and_modules ?dup if exit then try-menu-unset bootmsg 0 1 boot exit then load_kernel_and_modules ?dup 0= if bootmsg 0 1 boot then ; The thing to know here is when you see 'boot' as part of above script, it's calling the 'boot' cli command, not itself recursively. I can help do more interpretation of the details if you need Kyle. Not sure how much to spell out, but the brief pseudo code is: If there were any arguments that didn't start with '-', unload. otherwise if kernelname is in in the environment, run the 'menu-unset' forth word if it exists, print the boot message and boot. Otherwise load the kernel and modules, run the 'menu-unset' forth word (if it exists), print the boot message and boot with kernelname Otherwise load the kernel and modules, run the 'menu-unset' forth word (if it exists), print the boot message and boot with kernelname if all that fails, load the kernel and modules and if that works boot them. Warner