[haiku-bugs] Re: [Haiku] #16069: Smap after installing Matrox to Ryzen

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 20 May 2020 03:03:58 -0000

#16069: Smap after installing Matrox to Ryzen
--------------------------------------+----------------------------
  Reporter:  TmTFx                    |      Owner:  nobody
      Type:  bug                      |     Status:  new
  Priority:  normal                   |  Milestone:  Unscheduled
 Component:  Drivers/Graphics/Matrox  |    Version:  R1/Development
Resolution:                           |   Keywords:
Blocked By:                           |   Blocking:
  Platform:  All                      |
--------------------------------------+----------------------------
Comment (by TmTFx):

 Premise: I'm not a developer nor I know very much C++ (just bought the
 book Programming with haiku).
 I git-cloned haiku and modified matrox driver.c in this way:
 - I've modified the line 772 as you suggested
 - the line 362 after looking at what is si->use_clone_bugfix I decided to
 modify it in this way:
 B_CLONEABLE_AREA | B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA,
 because this condition
 if (0)//sysinfo.kernel_build_date[0]=='J')/*FIXME - better ID version*/
         {
                 si->use_clone_bugfix = 1;
         }
         else
         {
                 si->use_clone_bugfix = 0;
         }
 is always false so I think (si->use_clone_bugfix ?
 B_READ_AREA|B_WRITE_AREA : 0) would never use B_READ_AREA|B_WRITE_AREA

 after those changes I compiled built the iso-anyboot image and tested

 It still halts due to SMAP error
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16069#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: