Skip to contentSkip to conversation

is there a limit on bss size?

DISCUSSION Tigran Aivazian 1 participant 1 message Nov 9, 2000 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 31 lines · Philipp Rumpf
Quoted 1 line · Petko Manolov

It is not so difficult as it looks.

I don't see it being difficult at all ...

Quoted 17 lines

The master pgd looking as:

.org 0x1000
ENTRY(swapper_pg_dir)

        .long 0x00102007
        .long 0x00103007
        .fill BOOT_USER_PGD_PTRS-2,4,0
        /* default: 766 entries */
        .long 0x00102007
        .long 0x00103007
        /* default: 254 entries */
        .fill BOOT_KERNEL_PGD_PTRS-2,4,0

should become:

Quoted 8 lines

.org 0x1000
ENTRY(swapper_pg_dir)

        .long 0x00102007
        .long 0x00103007
	....			# every entry addresses 4 MB exactly
	....			# so add as much as you want
	.long 0x0010X007
        .fill BOOT_USER_PGD_PTRS-X+2,4,0
Quoted 7 lines

I'm unconvinced we need to map more than 4 MB into low virtual addresses; nothing seems to break with

ENTRY(swapper_pg_dir)
.long 0x00102007

	.fill BOOT_USER_PGD_PTRS-1,4,0

Hi Phillip,

Ah, _now_ I understand what you are talking about (took me only slightly over a month ;) and so can answer -- try making a huge bzImage (a few megs) and boot with it. That was the main reason Werner added the extra stuff somewhere around 2.3.99-preX.

Having said that, I still don't see why we actually need a specific label (like pg1) for each successive page worth of pte's if we are filling them with data starting from pg0 until we hit empty_zero_page (as I asked in my other message).

Regards,
Tigran

PS. I cc'd the guy who was looking to extend the page tables for booting with huge bss also...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/