Nico Huber
b2893e22e6
memrange: Honor limit
in the last step of top-down stealing
...
We only checked that the resource fits below the given `limit` in
memranges_find_entry(), but then accidentally placed it at the top
of the found memrange. As most resources have only a coarse limit,
e.g. the 4G barrier of 32-bit space, this became only visible when
artificially setting an unusual, lower limit on a resource.
So, for the final placement, use `MIN(limit, range end)` instead
of the range's end alone.
Change-Id: I3cc62ac3d427683c00ba0ac9f991fca62e99ce44
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76480
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
2023-08-26 20:29:37 +00:00
..
2023-02-26 13:30:35 +00:00
2021-02-01 08:53:22 +00:00
2020-05-06 22:20:57 +00:00
2021-02-09 07:52:31 +00:00
2020-05-11 17:11:40 +00:00
2022-03-08 16:06:33 +00:00
2023-03-03 11:10:38 +00:00
2023-05-16 13:08:12 +00:00
2023-07-17 14:49:04 +00:00
2022-08-11 17:53:29 +00:00
2022-05-12 11:11:53 +00:00
2023-06-19 12:27:15 +00:00
2020-06-02 07:40:35 +00:00
2023-07-30 09:59:46 +00:00
2022-02-07 23:29:09 +00:00
2022-08-11 17:53:29 +00:00
2023-07-17 14:49:04 +00:00
2020-05-11 17:11:40 +00:00
2022-03-08 16:06:33 +00:00
2022-08-11 17:53:29 +00:00
2022-12-22 03:27:34 +00:00
2023-06-03 16:12:54 +00:00
2022-02-16 21:29:53 +00:00
2022-04-24 17:44:24 +00:00
2022-02-16 21:29:53 +00:00
2021-04-23 21:20:26 +00:00
2022-05-20 07:15:39 +00:00
2022-08-11 17:53:29 +00:00
2022-03-08 16:06:33 +00:00
2023-05-05 13:56:34 +00:00
2022-05-20 07:15:39 +00:00
2023-06-17 02:40:57 +00:00
2020-05-11 17:11:40 +00:00
2023-02-17 16:08:04 +00:00
2022-08-11 17:53:29 +00:00
2023-08-01 13:34:27 +00:00
2022-08-11 17:53:29 +00:00
2020-08-06 23:54:41 +00:00
2020-05-11 17:11:40 +00:00
2023-06-23 15:06:04 +00:00
2021-05-27 15:41:15 +00:00
2020-05-11 19:37:19 +00:00
2020-05-11 17:11:40 +00:00
2023-04-22 16:20:49 +00:00
2022-11-18 16:00:45 +00:00
2022-04-24 17:43:57 +00:00
2023-07-17 14:49:04 +00:00
2023-07-17 14:49:04 +00:00
2022-12-17 20:51:38 +00:00
2023-06-19 12:27:15 +00:00
2020-06-17 21:13:09 +00:00
2022-08-11 17:53:29 +00:00
2021-11-03 08:29:16 +00:00
2022-08-11 17:53:29 +00:00
2022-10-12 16:55:58 +00:00
2017-03-13 17:21:02 +01:00
2023-06-23 16:31:47 +00:00
2023-02-17 16:08:04 +00:00
2022-05-12 11:12:21 +00:00
2022-08-11 17:53:29 +00:00
2022-08-11 17:53:29 +00:00
2022-08-11 17:53:29 +00:00
2022-08-11 17:53:29 +00:00
2023-08-26 20:29:37 +00:00
2022-08-11 17:53:29 +00:00
2022-09-02 23:51:29 +00:00
2022-12-21 13:57:48 +00:00
2020-05-11 17:11:40 +00:00
2023-07-10 04:43:05 +00:00
2022-10-06 18:13:19 +00:00
2022-10-20 14:43:40 +00:00
2020-05-11 17:11:40 +00:00
2023-06-23 15:06:04 +00:00
2020-12-01 16:00:57 +00:00
2021-10-05 18:06:39 +00:00
2020-05-11 17:11:40 +00:00
2022-10-13 19:14:57 +00:00
2022-08-11 17:53:29 +00:00
2021-01-23 20:19:47 +00:00
2021-05-30 20:24:13 +00:00
2022-11-30 03:07:23 +00:00
2023-06-22 22:24:57 +00:00
2023-06-26 03:07:38 +00:00
2022-11-07 02:29:23 +00:00
2022-04-20 06:57:21 +00:00
2019-02-22 06:44:02 +00:00
2022-08-11 17:53:29 +00:00
2022-09-14 11:55:39 +00:00
2022-09-23 17:34:30 +00:00
2020-05-11 17:11:40 +00:00
2022-05-20 07:15:39 +00:00
2023-05-22 12:33:32 +00:00
2020-05-11 17:11:40 +00:00
2023-07-28 14:21:18 +00:00
2023-04-22 16:20:49 +00:00
2020-05-11 17:11:40 +00:00
2022-09-07 22:24:51 +00:00