示例#1
0
static inline void *get_top_aligned(void)
{
	unsigned long top;

	/* Align down what is returned from cbmem_top(). */
	top = (unsigned long)cbmem_top_cached();
	top &= ~(DYN_CBMEM_ALIGN_SIZE - 1);

	return (void *)top;
}
示例#2
0
static inline uintptr_t get_top_aligned(void)
{
	uintptr_t top;

	/* Align down what is returned from cbmem_top(). */
	top = (uintptr_t)cbmem_top_cached();
	top &= ~(DYN_CBMEM_ALIGN_SIZE - 1);

	return top;
}