Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

_writegsbase_u32(), _writegsbase_u64()

Write the value to the GS base register. Both intrinsics are mapped to WRGSBASE instruction.

Syntax

_writegsbase_u32(int 32 val)

extern void _writegsbase_u64(unsigned __int64 val);

Arguments
val

the value to be written to the GS base register

Description

These intrinsics write the given value to the GS segment base register.