mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 11:55:53 +00:00
3c726f8dee
Adds a new CONFIG_PPC_64K_PAGES which, when enabled, changes the kernel base page size to 64K. The resulting kernel still boots on any hardware. On current machines with 4K pages support only, the kernel will maintain 16 "subpages" for each 64K page transparently. Note that while real 64K capable HW has been tested, the current patch will not enable it yet as such hardware is not released yet, and I'm still verifying with the firmware architects the proper to get the information from the newer hypervisors. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
36 lines
955 B
C
36 lines
955 B
C
/*
|
|
* Copyright (C) 2001 Mike Corrigan IBM Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#include <asm/page.h>
|
|
#include <asm/abs_addr.h>
|
|
#include <asm/iseries/hv_call.h>
|
|
#include <asm/iseries/hv_call_sc.h>
|
|
#include <asm/iseries/hv_types.h>
|
|
|
|
|
|
void HvCall_writeLogBuffer(const void *buffer, u64 len)
|
|
{
|
|
struct HvLpBufferList hv_buf;
|
|
u64 left_this_page;
|
|
u64 cur = virt_to_abs(buffer);
|
|
|
|
while (len) {
|
|
hv_buf.addr = cur;
|
|
left_this_page = ((cur & HW_PAGE_MASK) + HW_PAGE_SIZE) - cur;
|
|
if (left_this_page > len)
|
|
left_this_page = len;
|
|
hv_buf.len = left_this_page;
|
|
len -= left_this_page;
|
|
HvCall2(HvCallBaseWriteLogBuffer,
|
|
virt_to_abs(&hv_buf),
|
|
left_this_page);
|
|
cur = (cur & HW_PAGE_MASK) + HW_PAGE_SIZE;
|
|
}
|
|
}
|