mirror of
https://github.com/drasko/codezero.git
synced 2026-11-24 09:53:53 +01:00
Container number is received from the configuration system.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
#define __RESOURCES_H__
|
#define __RESOURCES_H__
|
||||||
|
|
||||||
/* Number of containers defined at compile-time */
|
/* Number of containers defined at compile-time */
|
||||||
#define CONFIG_TOTAL_CONTAINERS 1
|
#include <l4/config.h>
|
||||||
|
|
||||||
#include <l4/generic/capability.h>
|
#include <l4/generic/capability.h>
|
||||||
#include <l4/lib/idpool.h>
|
#include <l4/lib/idpool.h>
|
||||||
|
|||||||
@@ -806,7 +806,7 @@ int setup_boot_resources(struct boot_resources *bootres,
|
|||||||
init_kernel_container(kcont);
|
init_kernel_container(kcont);
|
||||||
|
|
||||||
/* Number of containers known at compile-time */
|
/* Number of containers known at compile-time */
|
||||||
bootres->nconts = CONFIG_TOTAL_CONTAINERS;
|
bootres->nconts = CONFIG_CONTAINERS;
|
||||||
|
|
||||||
/* Traverse all containers */
|
/* Traverse all containers */
|
||||||
for (int i = 0; i < bootres->nconts; i++) {
|
for (int i = 0; i < bootres->nconts; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user