Article View: muc.lists.netbsd.port.m68k
Article #9Re: Some fixes for m68k users (incl/ for FPU emulation)
From: Jason Thorpe
Date: Thu, 05 Nov 2026 16:00
Date: Thu, 05 Nov 2026 16:00
61 lines
6660 bytes
6660 bytes
> On Nov 1, 2026, at 6:12 AM, Romain Dolbeau <romain@dolbeau.org> wrote: > > I haven't looked at pmap_68k so it might be OK already; please make > sure U0/U1 aren't used for internal purposes - they are exposed on > external pins so could have an impact on the hardware (even if in r > practice almost nobody used them), and they are needed to "properly" > support SMP on MC68040 (they are used to indicate the level of type of > snooping to use for the data in that page). My new pmap module uses the following PTE bits: /* * Abstract definitions for PTE bits / fields. C code will compile-time- * assert the equivalencies that we assume. * * N.B. assumes exclusive use of short descriptors on 68851. */ #define PTE_VALID PTE40_RESIDENT /* == DT51_PAGE */ #define PTE_WP PTE40_W /* == PTE51_WP */ #define PTE_M PTE40_M /* == PTE51_M */ #define PTE_U PTE40_U /* == PTE51_U */ #define PTE_PVLIST PTE40_G /* unused on '51, don't use PFLUSHxN */ #define PTE_WIRED PTE40_UR /* unused on '51 */ In mmu_40.h, I have some additional commentary that goes along with it: /* * The PTE format for L3 tables. * * Some notes: * * - PFLUSH variants that specify non-global entries do not invalidate * global entries. If these PFLUSH variants are not used, then the G * bit can be used as a software-defined bit. * * - The UR bits are "reserved for use by the user", so can be * used as software-defined bits. * * - The U0 and U1 "User Page Attribute" bits should *not* be used * as software-defined bits; they are reflected on the UPA0 and UPA1 * CPU signals if an external bus transfer results from the access, * meaning that they may have system-specific side-effects. */ …and note: #define PTE40_UR_x __BIT(12) /* User Reserved (extra avail if 8K) */ …you get an extra software-defined bit if you use 8K pages. -- thorpej -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<1A4D6809-33FB-4F7A-A28C-68BE9798318D@me.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <CADuzgbpHx97s+ObD_GB1m-3ChZopS3Z-ojiKQD76sZUivpO63A@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Jason Thorpe <thorpej@me.com> Newsgroups: muc.lists.netbsd.port.m68k Subject: Re: Some fixes for m68k users (incl/ for FPU emulation) Date: Thu, 5 Nov 2026 08:00:14 -0800 Organization: Newsgate at muc.de e.V. Sender: port-m68k-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <1A4D6809-33FB-4F7A-A28C-68BE9798318D@me.com> References: <> <CADuzgbpHx97s+ObD_GB1m-3ChZopS3Z-ojiKQD76sZUivpO63A@mail.gmail.com> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="37305"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com X-ICL-RepId: 01a1ac70-a92c-72d3-a1db-e901d84b49ac X-ICL-Out-Info: HUtFAUMEWwJACUgBTUQeDx5WFlZNRAJCTQBAHVkCRQBECFYAWxcOVk1NEFwfRw5YMFQdHQ5YBhIWXUVeCBkIXR0ZClBQBEtaFVUXDgJCH1AfTBZXQ1QCHBlaFFwYU0VRH1RYQxlFVmlBC08dXRlbHEJkWFcJCgZXXloXXk1aAlZNBUlyWXNdCkAAVQBecSkfRH9PckB2WQozFE4LL3JSBUkBSwJVcytfFRcbXAAJS0YJSR0OBFQHXQVd Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1793894428; x=1825430428; bh=lOJQyg0QQ8X/rTqU5eAyGyysWwVWQTUEF3HBeUiJ16A=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To:x-icloud-hme; b=ZyDLLDcSkVoDu9oSHJNt3c6gmLLouGZzmnZrWQQBrmaVHTV5K3L6Bu6mWiONeKip4LTA/XImDncvEpEooloU3Huk23KPnRoGm8vr4RjDpuqM8w/1HpFoSI5Wh0K3q+5sCGUi6kO/kNgdvSAliuUdsxinsAAkSr+RLo1OOWnbd6+0zINORMFI/eLMZoRRG41GDO7rCa/6c6TTCIPHOUx83cG3PzAyglZXcin1PwHp4zb2G9lUHeAqDiDKRdSh3xGHyGm9hDc0AHAXbXKUt5M5mV7k7sLlbNNAKHS3leyYNHaF4PErsWwlTD8NRlylAcgFkW7eB1KzR4cWpBRkriNDrQ== In-Reply-To: <CADuzgbpHx97s+ObD_GB1m-3ChZopS3Z-ojiKQD76sZUivpO63A@mail.gmail.com> X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTA1MDA2MyBTYWx0ZWRfX7O0Rrb6MENzd lXKOHA8Y1yEAXFmcmOd/GOJOrdOoj4B6rO/H+P5IGSayw2E++8KuKFSwLk2YRWDSAPlwjLz6BnH bd0y7o0QNqNqCLskDl4J62VUoS4slcz3Rn4uaZNZBgAV7nZxbs5buqut3DY14/QNOLIRk3HqG4P GWLyHi5PBb9KXa9XapDAaQHWvrHA0g5OBuzvClaLHGtHpeTPgjIqX22IrWan3vZ8h1UB5xLgGaG Je9E/j7v0hQEr+1cDOQgc3sfxRoqRn7wXECNBQ/hGlhas+Wg2kt/oO5cHJedzGCB8+jz2TDJZ8G Z/JClatj4dq8BDTwSMQ0BBmVNltPGQ7VXZVphZfzxwttwJWKcNRCYbkK3ou8J4= X-Proofpoint-ORIG-GUID: AjxA60_I45jZ5oH6lc2-O8yBrvnX1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