Skip to content

Commit 409bc6f

Browse files
committed
libcore: Fix cleanup for i386
1 parent 2469cba commit 409bc6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libcore/cleanup.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ struct Env { priv opaque: () }
2525
struct AllocHeader { priv opaque: () }
2626
struct MemoryRegion { priv opaque: () }
2727

28-
// XXX: i386
28+
#[cfg(target_arch="x86")]
29+
struct Registers {
30+
data: [u32 * 13]
31+
}
32+
33+
#[cfg(target_arch="x86_64")]
2934
struct Registers {
3035
data: [u64 * 22]
3136
}

0 commit comments

Comments
 (0)