summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-31 02:04:45 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-31 02:04:45 +0200
commit6c4464d16b2fccb1acf8cd78f6b61426a949ab01 (patch)
tree0e48fcaed590fcd89430b90c28420fffe72d8ca4
parent4d79b40a53d855c41137fa44bcafa62f5ae9f55d (diff)
seg: Fix fill_gate offset
* i386/i386/seg.h (fill_gate): Make offset an unsigned long.
-rw-r--r--i386/i386/seg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/seg.h b/i386/i386/seg.h
index b1a14fe4..d2bb3f0d 100644
--- a/i386/i386/seg.h
+++ b/i386/i386/seg.h
@@ -241,7 +241,7 @@ fill_descriptor64(struct real_descriptor64 *_desc, unsigned long base, unsigned
/* Fill a gate with particular values. */
MACH_INLINE void
-fill_gate(struct real_gate *gate, unsigned offset, unsigned short selector,
+fill_gate(struct real_gate *gate, unsigned long offset, unsigned short selector,
unsigned char access, unsigned char word_count)
{
gate->offset_low = offset & 0xffff;