kernel: Whitespace cleanup only.

This commit is contained in:
Michael Lotz
2020-06-13 23:24:27 +02:00
parent c63d300251
commit 31cee26cfe
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
enum { enum {
/* object_cache_{alloc,free}() flags */ /* object_cache_{alloc,free}() flags */
CACHE_DONT_WAIT_FOR_MEMORY = HEAP_DONT_WAIT_FOR_MEMORY, CACHE_DONT_WAIT_FOR_MEMORY = HEAP_DONT_WAIT_FOR_MEMORY,
CACHE_DONT_LOCK_KERNEL_SPACE = HEAP_DONT_LOCK_KERNEL_SPACE, CACHE_DONT_LOCK_KERNEL_SPACE = HEAP_DONT_LOCK_KERNEL_SPACE,
CACHE_PRIORITY_VIP = HEAP_PRIORITY_VIP, CACHE_PRIORITY_VIP = HEAP_PRIORITY_VIP,
+1 -1
View File
@@ -26,7 +26,7 @@ public:
VMTranslationMap(); VMTranslationMap();
virtual ~VMTranslationMap(); virtual ~VMTranslationMap();
virtual bool Lock() = 0; virtual bool Lock() = 0;
virtual void Unlock() = 0; virtual void Unlock() = 0;
virtual addr_t MappedSize() const = 0; virtual addr_t MappedSize() const = 0;
+1 -1
View File
@@ -186,7 +186,7 @@ arch_team_init_team_struct(Team* p, bool kernel)
/*! Initializes the user-space TLS local storage pointer in /*! Initializes the user-space TLS local storage pointer in
the thread structure, and the reserved TLS slots. the thread structure, and the reserved TLS slots.
Is called from _create_user_thread_kentry(). Is called from _create_user_thread_kentry().
*/ */
status_t status_t
+2 -2
View File
@@ -3714,8 +3714,8 @@ unmap_and_free_physical_pages(VMTranslationMap* map, addr_t start, addr_t end)
&& (flags & PAGE_PRESENT) != 0) { && (flags & PAGE_PRESENT) != 0) {
vm_page* page = vm_lookup_page(physicalAddress / B_PAGE_SIZE); vm_page* page = vm_lookup_page(physicalAddress / B_PAGE_SIZE);
if (page != NULL && page->State() != PAGE_STATE_FREE if (page != NULL && page->State() != PAGE_STATE_FREE
&& page->State() != PAGE_STATE_CLEAR && page->State() != PAGE_STATE_CLEAR
&& page->State() != PAGE_STATE_UNUSED) { && page->State() != PAGE_STATE_UNUSED) {
DEBUG_PAGE_ACCESS_START(page); DEBUG_PAGE_ACCESS_START(page);
vm_page_set_state(page, PAGE_STATE_FREE); vm_page_set_state(page, PAGE_STATE_FREE);
} }
+1 -1
View File
@@ -3746,7 +3746,7 @@ allocate_page_run(page_num_t start, page_num_t length, uint32 flags,
if ((flags & VM_PAGE_ALLOC_CLEAR) != 0) { if ((flags & VM_PAGE_ALLOC_CLEAR) != 0) {
for (VMPageQueue::PageList::Iterator it = freePages.GetIterator(); for (VMPageQueue::PageList::Iterator it = freePages.GetIterator();
vm_page* page = it.Next();) { vm_page* page = it.Next();) {
clear_page(page); clear_page(page);
} }
} }