dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / acpi / common / osl.c
blob599592b6de2c9d403dfe4d129019f0195ba04cc9
1 /*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2016 Joyent, Inc.
16 #include <stdio.h>
17 #include <stdarg.h>
18 #include "acpi.h"
19 #include "accommon.h"
21 ACPI_STATUS
22 AcpiOsInitialize(void)
24 return (AE_OK);
28 * The locking functions are no-ops because the application tools that use
29 * these are all single threaded. However, due to the common code base that we
30 * pull in from Intel, these functions are also called when the software is
31 * compiled into the kernel, where it does need to do locking.
33 ACPI_CPU_FLAGS
34 AcpiOsAcquireLock(ACPI_HANDLE Handle)
36 return (AE_OK);
39 void
40 AcpiOsReleaseLock(ACPI_HANDLE Handle, ACPI_CPU_FLAGS Flags)
44 void
45 AcpiOsVprintf(const char *Format, va_list Args)
47 vprintf(Format, Args);
50 void ACPI_INTERNAL_VAR_XFACE
51 AcpiOsPrintf(const char *Format, ...)
53 va_list ap;
55 va_start(ap, Format);
56 AcpiOsVprintf(Format, ap);
57 va_end(ap);
60 int
61 AcpiOsWriteFile(ACPI_FILE File, void *Buffer, ACPI_SIZE Size, ACPI_SIZE Count)
63 return (fwrite(Buffer, Size, Count, File));