Port-sparc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
SSP and PAGE_SHIFT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
While cross compiling on i386 the sparc kernel with USE_SSP enabled in
mk.conf I was getting failures due to PAGE_SHIFT not being set in
sparc/include/vmparam.h
There is a test for CPU_NTYPES and SUN4M.
In my case SUN4M is defined and CPU_NTYPES is 4.
I added
#elif CPU_NTYPES == 4 && defined(SUN4)
#define PAGE_SHIFT PAGE_SHIFT_SUN4
#define PAGE_SIZE (1 << PAGE_SHIFT)
#define PAGE_MASK (PAGE_SIZE - 1)
To get it to compile, however I doubt this is the proper way to fix this
long term. Was looking for feedback on the right way to do this.
Thanks.
- -Jaime Fournier
ober%LinBSD.org@localhost
ober%NetBSD.org@localhost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (OpenBSD)
iQEVAwUBSDcS/OKouq8GGVzHAQJ+/ggAifd3lntb72gcoZRWQ49xfPG4nHTDav87
CGZX+P3AAgOxrlWO8JKrOPldzpecXWEEwBfqoMw7bel1UWG7QXUbSpSGzQxTdID5
lEDpvKBmWXAKyfJE7JMmyZdX/opIBgnvJ7vlelqbaqtBhDROKJWa2k7cPhuy/Sq7
Iq4x0vk8x5DfhXvCDKU3M2R5ExOpc1EKhS29/wO/Iicb6Cv+ymn23DDTcV+EOUtT
deoadqq7Omg1AJOwW1Tv64BEsT79CzGy3nmPWbuTaVFD2TWSa99YsQuImq0eXwoj
OKGS1N93qLSKbfxr7m6Y10CQoqXr7OTHZxAvsoqwhf/wQnplMry3uQ==
=9hHg
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index