summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kernel/kernel.C7
-rw-r--r--src/sys/vfs/vfs_init.C2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/kernel/kernel.C b/src/kernel/kernel.C
index f39290a09..5d16033d0 100644
--- a/src/kernel/kernel.C
+++ b/src/kernel/kernel.C
@@ -75,8 +75,11 @@ void Kernel::cppBootstrap()
void Kernel::memBootstrap()
{
- // Populate L3 cache lines after code space.
- uint64_t* cache_line = (uint64_t*) VFS_LAST_ADDRESS;
+ // Populate L3 cache lines after code space.
+ // Needs to be rounded up to nearest 256 bytes (cache line size).
+ uint64_t* cache_line = (uint64_t*) (VFS_LAST_ADDRESS +
+ ((VFS_LAST_ADDRESS % 256) ? (256 - (VFS_LAST_ADDRESS % 256)) : 0))
+ ;
uint64_t* end_cache_line = (uint64_t*) VmmManager::FULL_MEM_SIZE;
while (cache_line != end_cache_line)
{
diff --git a/src/sys/vfs/vfs_init.C b/src/sys/vfs/vfs_init.C
index 24c55fda9..259252171 100644
--- a/src/sys/vfs/vfs_init.C
+++ b/src/sys/vfs/vfs_init.C
@@ -19,7 +19,7 @@ void vfs_module_init()
module++;
}
- printk("Modules initialized.");
+ printk("Modules initialized.\n");
}
void (*vfs_module_find_start(const char* modName))(void*)
OpenPOWER on IntegriCloud