We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5def442 commit efcec32Copy full SHA for efcec32
arch/riscv/include/asm/page.h
@@ -37,16 +37,6 @@
37
38
#ifndef __ASSEMBLY__
39
40
-#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
41
-#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
42
-
43
-/* align addr on a size boundary - adjust address up/down if needed */
44
-#define _ALIGN_UP(addr, size) (((addr)+((size)-1))&(~((size)-1)))
45
-#define _ALIGN_DOWN(addr, size) ((addr)&(~((size)-1)))
46
47
-/* align addr on a size boundary - adjust address up if needed */
48
-#define _ALIGN(addr, size) _ALIGN_UP(addr, size)
49
50
#define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
51
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
52
0 commit comments