Fix a few more uses of PAGE_SIZE

This commit is contained in:
Adrien Destugues 2017-04-14 07:23:23 +02:00
parent 6caa391f67
commit 5bb8320035
3 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ static void fwohci_task_dma(void *);
/*
* memory allocated for DMA programs
*/
#define DMA_PROG_ALLOC (8 * PAGE_SIZE)
#define DMA_PROG_ALLOC (8 * B_PAGE_SIZE)
#define NDB FWMAXQUEUE

View File

@ -111,7 +111,7 @@ CDaffyDuck::~CDaffyDuck()
{
if (NULL != m_pDuckPage)
m_pOsSupport->FreePhysPageBlock( PAGE_SIZE, m_pDuckPage);
m_pOsSupport->FreePhysPageBlock( B_PAGE_SIZE, m_pDuckPage);
} // CDaffyDuck::~CDaffyDuck()
@ -823,7 +823,7 @@ CDaffyDuck * CDaffyDuck::MakeDaffyDuck(COsSupport *pOsSupport)
PHYS_ADDR PhysAddr;
PPAGE_BLOCK pPageBlock;
Status = pOsSupport->AllocPhysPageBlock( PAGE_SIZE, pPageBlock);
Status = pOsSupport->AllocPhysPageBlock( B_PAGE_SIZE, pPageBlock);
if (ECHOSTATUS_OK != Status)
{
ECHO_DEBUGPRINTF(("CDaffyDuck::CDaffyDuck - duck entry page block malloc failed\n"));

View File

@ -10,7 +10,7 @@ UseHeaders $(HAIKU_PRIVATE_KERNEL_HEADERS) : true ;
Includes [ FGristFiles kernel_c++_structs.h ]
: <src!system!kernel>kernel_c++_struct_sizes.h ;
SubDirCcFlags [ FDefines _KERNEL=1 ] ;
SubDirCcFlags [ FDefines _KERNEL=1 _XOPEN_SOURCE ] ;
KernelStaticLibrary libfreebsd_network.a :
bus.cpp