]> git.proxmox.com Git - rustc.git/blame - src/rt/arch/i386/gpr.h
Imported Upstream version 0.7
[rustc.git] / src / rt / arch / i386 / gpr.h
CommitLineData
223e47cc
LB
1// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11// General-purpose registers. This structure is used during stack crawling.
12
13#ifndef GPR_H
14#define GPR_H
15
16#include "rust_gpr_base.h"
17
18class rust_gpr : public rust_gpr_base {
19public:
20 uintptr_t eax, ebx, ecx, edx, esi, edi, ebp, eip;
21
22 inline uintptr_t get_fp() { return ebp; }
23 inline uintptr_t get_ip() { return eip; }
24
25 inline void set_fp(uintptr_t new_fp) { ebp = new_fp; }
26 inline void set_ip(uintptr_t new_ip) { eip = new_ip; }
27
28 void load();
29};
30
31#endif