summaryrefslogtreecommitdiffstats
path: root/bsps/arm/altera-cyclone-v/start/bspgetworkarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/altera-cyclone-v/start/bspgetworkarea.c')
-rw-r--r--bsps/arm/altera-cyclone-v/start/bspgetworkarea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/arm/altera-cyclone-v/start/bspgetworkarea.c b/bsps/arm/altera-cyclone-v/start/bspgetworkarea.c
index 33b82f922d..b4c2a9a393 100644
--- a/bsps/arm/altera-cyclone-v/start/bspgetworkarea.c
+++ b/bsps/arm/altera-cyclone-v/start/bspgetworkarea.c
@@ -12,7 +12,7 @@
*/
/*
- * Copyright (C) 2017, 2019 embedded brains GmbH (http://www.embedded-brains.de)
+ * Copyright (C) 2017, 2019 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -160,7 +160,7 @@ static size_t remove_reserved_memory(
area = find_area(areas, area_count, hole_begin);
area_end = (uintptr_t) _Memory_Get_end(area);
- _Memory_Set_end(area, (void *) hole_end);
+ _Memory_Set_end(area, (void *) hole_begin);
if (hole_end <= area_end) {
if (area_count >= AREA_COUNT_MAX) {