Fix autoconfiguration on sparc and sparc64.
The code to add sunffb unconditionally on !solaris for __sparc__ systems is incorrect for openbsd. More specifically, due to interactions between hardware drivers and wsfb in preinit we can't unconditionally add wsfb to the list of fallbacks, so we only add wsfb if no other option was found. Additionally sunffb does not need to be unconditionally added because the bus probing code will find these devices already. So, long story short: make that code chunk conditional on __sparc__ && defined(__linux__) instead. change from !openbsd to __linux__ requested by kettenis@. Tested by at least myself and stsp@. ok matthieu@, kettenis@.
This commit is contained in:
parent
b6cbfdde5d
commit
25b0cbcd49
@ -507,7 +507,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
|
||||
if (i < (nmatches - 1)) {
|
||||
#if defined(__i386__) || defined(__amd64__) || defined(__hurd__)
|
||||
matches[i++] = xnfstrdup("vesa");
|
||||
#elif defined(__sparc__) && !defined(sun)
|
||||
#elif defined(__sparc__) && defined(__linux__)
|
||||
matches[i++] = xnfstrdup("sunffb");
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user