blob: 86d704616bb1829bfa8d0da353c40b7efaba995c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* ----------------------------------------------------------------------- *
*
* Copyright 2009 Intel Corporation; author: H. Peter Anvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston MA 02110-1301, USA; either version 2 of the License, or
* (at your option) any later version; incorporated herein by reference.
*
* ----------------------------------------------------------------------- */
/*
* call16.c
*
* Simple wrapper to call 16-bit core functions from 32-bit code
*/
#include <stddef.h>
#include "core.h"
const com32sys_t zero_regs; /* Common all-zero register set */
void call16(void (*func)(void), const com32sys_t *ireg, com32sys_t *oreg)
{
core_farcall((size_t)func, ireg, oreg);
}
|