Skip to contentSkip to conversation

explicitly allocate executable pages?

parisc-linux Grant Grundler 2 participants 2 messages Jan 17, 2004

lore
Share & tools
lore
#0 lore raw

Could someone explain the following code in arch/parisc/mm/init.c?

The #warning doesn't make sense to me since it's inside !defined() for the thing it's talking about.

thanks,
grant

...
#if !defined(CONFIG_STI_CONSOLE)
#warning STI console should explicitly allocate executable pages but does not

                                /*
                                 * Map the fault vector writable so we can
                                 * write the HPMC checksum.
                                 */
                                if (address >= ro_start && address < ro_end
                                                        && address != fv_addr
                                                        && address != gw_addr)
                                    pte = __mk_pte(address, PAGE_KERNEL_RO);
                                else

#endif
...

#1 lore raw
Quoted 4 lines · Grant Grundler

Could someone explain the following code in arch/parisc/mm/init.c?

The #warning doesn't make sense to me since it's inside !defined() for the thing it's talking about.

Yes, it doesn't make sense to me either.
Running serial console only (without STIcon or STIfb) give me that error message aswell, which is slightly confusing ;-)

Max