forked from dan/liminix
tftpboot: explicitly mark phram as mappable
This commit is contained in:
parent
9b26ddac3f
commit
616122fa3f
@ -61,9 +61,8 @@ stdenv.mkDerivation rec {
|
|||||||
patches = [
|
patches = [
|
||||||
./cmdline-cookie.patch
|
./cmdline-cookie.patch
|
||||||
./mips-malta-fdt-from-bootloader.patch
|
./mips-malta-fdt-from-bootloader.patch
|
||||||
./phram-always-memremap.patch
|
] ++ lib.optional (lib.versionOlder version "5.18.0")
|
||||||
];# ++ lib.optional (lib.versionOlder version "5.18.0")
|
./phram-allow-cached-mappings.patch;
|
||||||
#./phram-allow-cached-mappings.patch
|
|
||||||
|
|
||||||
# this is here to work around what I think is a bug in nixpkgs
|
# this is here to work around what I think is a bug in nixpkgs
|
||||||
# packaging of ncurses: it installs pkg-config data files which
|
# packaging of ncurses: it installs pkg-config data files which
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
--- a/drivers/mtd/devices/phram.c 2024-12-20 23:42:19.248462526 +0100
|
|
||||||
+++ b/drivers/mtd/devices/phram.c 2024-12-20 23:41:11.344218259 +0100
|
|
||||||
@@ -85,7 +85,7 @@
|
|
||||||
{
|
|
||||||
void *addr = NULL;
|
|
||||||
|
|
||||||
- if (phram->cached)
|
|
||||||
+ if (phram->cached || true)
|
|
||||||
addr = memremap(start, len, MEMREMAP_WB);
|
|
||||||
else
|
|
||||||
addr = (void __force *)ioremap(start, len);
|
|
||||||
@@ -101,7 +101,7 @@
|
|
||||||
{
|
|
||||||
void *addr = phram->mtd.priv;
|
|
||||||
|
|
||||||
- if (phram->cached) {
|
|
||||||
+ if (phram->cached || true) {
|
|
||||||
memunmap(addr);
|
|
||||||
return;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user