Project

General

Profile

Actions

Submit #1742

closed

PAT support

Added by aoiko over 14 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Here's a patch for Page Attribute Table support I ported from FreeBSD
quite a while back. I'm sending it to submit@ in case someone will get
interested and deal w/ the cpu identification part (probably integrating
the FreeBSD code for that too) so we can integrate it. It will get used
more and more in new code and will significantly help porting.

As you'll notice in pmap_init_pat()

#ifdef notyet
if (cpu_vendor_id != CPU_VENDOR_INTEL ||
+ (I386_CPU_FAMILY(cpu_id) == 6 && I386_CPU_MODEL(cpu_id) >=
0xe)) {
#else
if (!0) {
+#endif

so we need at least I386_CPU_{FAMILY,MODEL} (to be found in
i386/include/specialreg.h) and having the companion code would be nice
too (ISTR it was straightforward but not trivial, not sure if I remember
correctly now. Looks trivial enough :/)

I have tried using the PMAP in mxge(4) so I don't think you'll get any
panics ;)

Aggelos


Files

PAT-1.patch (12.9 KB) PAT-1.patch aoiko, 04/19/2010 05:15 PM
Actions #1

Updated by robgar over 14 years ago

I will take a closer look at this when I get another DFLY box up and running.
Should be Friday. If nobody gets to it before then.

Actions #2

Updated by aoiko over 14 years ago

Am 09/07/2010 08:22 AM, schrieb Robert Garrett (via DragonFly issue
tracker):

Robert Garrett<> added the comment:

I will take a closer look at this when I get another DFLY box up and running.
Should be Friday. If nobody gets to it before then.

Mmm, this patch is a bit ancient and doesn't apply. Sascha and I rewrote
it back in April and it should work on i386 but I haven't gotten round
to the amd64 bits yet (and I doubt I will in the immediate future). You
can find the patch at

http://leaf.dragonflybsd.org/~aggelos/0001-WIP-PAT.patch

HTH,
Aggelos

Actions #3

Updated by tuxillo about 3 years ago

  • Tracker changed from Bug to Submit
  • Description updated (diff)
  • Assignee deleted (0)
Actions #4

Updated by tuxillo about 3 years ago

  • Status changed from New to Closed
  • Assignee set to aoiko
  • % Done changed from 0 to 100

We no longer suupport i386.

As for the x86_64 part, it was reworked and committed here: b524ca7607a8319b610d7c73eb8152adcb542c05

Actions

Also available in: Atom PDF