![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 /* ----------------------------------------------------------------------- 0003 * 0004 * Copyright 2009 Intel Corporation; author H. Peter Anvin 0005 * 0006 * ----------------------------------------------------------------------- */ 0007 0008 /* 0009 * Simple helper function for initializing a register set. 0010 * 0011 * Note that this sets EFLAGS_CF in the input register set; this 0012 * makes it easier to catch functions which do nothing but don't 0013 * explicitly set CF. 0014 */ 0015 0016 #include "boot.h" 0017 #include "string.h" 0018 0019 void initregs(struct biosregs *reg) 0020 { 0021 memset(reg, 0, sizeof(*reg)); 0022 reg->eflags |= X86_EFLAGS_CF; 0023 reg->ds = ds(); 0024 reg->es = ds(); 0025 reg->fs = fs(); 0026 reg->gs = gs(); 0027 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |