mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base: Zero attached dataspace upon creation.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#ifndef _INCLUDE__BASE__ATTACHED_RAM_DATASPACE_H_
|
||||
#define _INCLUDE__BASE__ATTACHED_RAM_DATASPACE_H_
|
||||
|
||||
#include <util/string.h>
|
||||
#include <util/touch.h>
|
||||
#include <base/ram_allocator.h>
|
||||
#include <base/env.h>
|
||||
@@ -105,6 +106,7 @@ class Genode::Attached_ram_dataspace
|
||||
_size(size), _ram(&ram), _rm(&rm), _cache(cache)
|
||||
{
|
||||
_alloc_and_attach();
|
||||
memset(_local_addr, 0, _size);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user