| // Copyright 2021 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| { | |
| children: [ | |
| { | |
| name: "sysmem", | |
| url: "fuchsia-boot:///sysmem#meta/sysmem.cm", | |
| startup: "eager", | |
| on_terminate: "reboot", | |
| }, | |
| ], | |
| offer: [ | |
| { | |
| protocol: [ | |
| "fuchsia.sysmem.Allocator", | |
| "fuchsia.sysmem2.Allocator", | |
| ], | |
| from: "#sysmem", | |
| to: "self/toolbox", | |
| target_availability: "unknown", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.feedback.ComponentDataRegister", | |
| "fuchsia.kernel.InfoResource", | |
| "fuchsia.kernel.IommuResource", | |
| "fuchsia.kernel.MmioResource", | |
| "fuchsia.metrics.MetricEventLoggerFactory", | |
| ], | |
| from: "parent", | |
| to: "#sysmem", | |
| }, | |
| { | |
| protocol: "fuchsia.scheduler.RoleManager", | |
| from: "#role_manager", | |
| to: "#sysmem", | |
| }, | |
| { | |
| protocol: "fuchsia.tracing.provider.Registry", | |
| from: "parent", | |
| to: "#sysmem", | |
| availability: "optional", | |
| }, | |
| { | |
| config: [ | |
| "fuchsia.sysmem.ContiguousGuardPagesUnused", | |
| "fuchsia.sysmem.FixedContiguousMemorySize", | |
| "fuchsia.sysmem.FixedProtectedMemorySize", | |
| "fuchsia.sysmem.PercentContiguousMemorySize", | |
| "fuchsia.sysmem.PercentProtectedMemorySize", | |
| ], | |
| from: "parent", | |
| to: "#sysmem", | |
| availability: "optional", | |
| }, | |
| { | |
| // These capabilities are not configured by Assembly; they use the | |
| // defaults in sysmem.cml in production and are only overridden in | |
| // tests. | |
| config: [ | |
| "fuchsia.sysmem.ContiguousGuardPageCount", | |
| "fuchsia.sysmem.ContiguousGuardPagesFatal", | |
| "fuchsia.sysmem.ContiguousGuardPagesInternal", | |
| "fuchsia.sysmem.ContiguousGuardPagesUnusedCycleSeconds", | |
| "fuchsia.sysmem.ContiguousGuardPagesUnusedFractionDenominator", | |
| "fuchsia.sysmem.ProtectedRangesDisableDynamic", | |
| ], | |
| from: "void", | |
| to: "#sysmem", | |
| availability: "optional", | |
| }, | |
| { | |
| dictionary: "diagnostics", | |
| from: "self", | |
| to: "#sysmem", | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| protocol: [ | |
| "fuchsia.sysmem.Allocator", | |
| "fuchsia.sysmem2.Allocator", | |
| ], | |
| from: "#sysmem", | |
| }, | |
| ], | |
| } |