prmt.c (e38abdab441c0dcfb8f28dd0daf1dfa44b494492) prmt.c (5894cf571e14fb393a4d0a82538de032127b9d8b)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Author: Erik Kaneda <erik.kaneda@intel.com>
4 * Copyright 2020 Intel Corporation
5 *
6 * prmt.c
7 *
8 * Each PRM service is an executable that is run in a restricted environment

--- 246 unchanged lines hidden (view full) ---

255
256 ACPI_COPY_NAMESEG(context.signature, "PRMC");
257 context.revision = 0x0;
258 context.reserved = 0x0;
259 context.identifier = handler->guid;
260 context.static_data_buffer = handler->static_data_buffer_addr;
261 context.mmio_ranges = module->mmio_info;
262
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Author: Erik Kaneda <erik.kaneda@intel.com>
4 * Copyright 2020 Intel Corporation
5 *
6 * prmt.c
7 *
8 * Each PRM service is an executable that is run in a restricted environment

--- 246 unchanged lines hidden (view full) ---

255
256 ACPI_COPY_NAMESEG(context.signature, "PRMC");
257 context.revision = 0x0;
258 context.reserved = 0x0;
259 context.identifier = handler->guid;
260 context.static_data_buffer = handler->static_data_buffer_addr;
261 context.mmio_ranges = module->mmio_info;
262
263 status = efi_call_virt_pointer(handler, handler_addr,
264 handler->acpi_param_buffer_addr,
265 &context);
263 status = efi_call_acpi_prm_handler(handler->handler_addr,
264 handler->acpi_param_buffer_addr,
265 &context);
266 if (status == EFI_SUCCESS) {
267 buffer->prm_status = PRM_HANDLER_SUCCESS;
268 } else {
269 buffer->prm_status = PRM_HANDLER_ERROR;
270 buffer->efi_status = status;
271 }
272 break;
273

--- 71 unchanged lines hidden ---
266 if (status == EFI_SUCCESS) {
267 buffer->prm_status = PRM_HANDLER_SUCCESS;
268 } else {
269 buffer->prm_status = PRM_HANDLER_ERROR;
270 buffer->efi_status = status;
271 }
272 break;
273

--- 71 unchanged lines hidden ---