代码搜索:segment
找到约 10,000 项符合「segment」的源代码
代码结果 10,000
www.eeworm.com/read/438669/1824525
h segment.h
// Segment.h: interface for the Segment class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SEGMENT_H__7E09882B_5BF8_4757_9ADE_544E71DEDB67__INCLUDED
www.eeworm.com/read/435707/1861805
c segment.c
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "error.h"
static void imagereclaim(void);
static void imagechanreclaim(void);
#include "io.h"
/*
* Attac
www.eeworm.com/read/435707/1861826
ed segment.ed
/^addphysseg/-1,/^ return/+1d
,s!Lock;!Lock lk;!
,s!lock(s)!lock(\&s->ref.lk)!g
,s!lock(i)!lock(\&i->ref.lk)!g
,s!(x = \*pg)!(&)!
,s!SET(n)!n = 0!
,s!ref(s->image)!ref(\&s->image->ref)!g
,s!(pte = s->
www.eeworm.com/read/435701/1862168
c segment.c
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
static void imagereclaim(void);
static void imagechanreclaim(void);
/* System sp
www.eeworm.com/read/435701/1862305
h segment.h
/*
* Attach segment types
*/
static Physseg physseg[10] = {
{ SG_SHARED, "shared", 0, SEGMAXSIZE, 0, 0 },
{ SG_BSS, "memory", 0, SEGMAXSIZE, 0, 0 },
{ 0, 0, 0, 0, 0, 0 },
};
www.eeworm.com/read/433802/1881668
h segment.h
extern inline unsigned char get_fs_byte(const char * addr)
{
unsigned register char _v;
__asm__ ("movb %%fs:%1,%0":"=r" (_v):"m" (*addr));
return _v;
}
extern inline unsigned short get_fs_word(co
www.eeworm.com/read/432012/1901185
c segment.c
/* Segmentation of the i386 architecture.
*
* 2003-07 by SONE Takeshi
*/
#include "openbios/config.h"
#include "openbios/kernel.h"
#include "sys_info.h"
#include "relocate.h"
#include "segment.h"
www.eeworm.com/read/432012/1901204
h segment.h
/* Segment indexes. Must match the gdt definition in segment.c. */
enum {
NULL_SEG,
FLAT_CODE,
FLAT_DATA,
RELOC_CODE,
RELOC_DATA,
NUM_SEG,
};
/* Values for segment selector r
www.eeworm.com/read/432012/1901310
c segment.c
/* Segmentation of the AMD64 architecture.
*
* 2003-07 by SONE Takeshi
*/
#include "openbios/config.h"
#include "openbios/kernel.h"
#include "sys_info.h"
#include "relocate.h"
#include "segment.h"
www.eeworm.com/read/432012/1901327
h segment.h
/* Segment indexes. Must match the gdt definition in segment.c. */
enum {
NULL_SEG,
FLAT_CODE,
FLAT_DATA,
RELOC_CODE,
RELOC_DATA,
NUM_SEG,
};
/* Values for segment selector r