diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-18 20:48:23 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-18 20:48:23 +0100 |
commit | ebd25e44eedf683551f0914137ff0f4f0a1a1858 (patch) | |
tree | 0870adc3273e1fa7ad271cf1edcda78e1af9c311 /xen | |
parent | ea5d3cf263142034d2edbcbf6655d55b215a9edc (diff) |
Fix assembly snippet portability
* xen/evt.c (hyp_c_callback): Do not set assembly instruction suffixes,
using 1UL constant instead.
Diffstat (limited to 'xen')
-rw-r--r-- | xen/evt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,12 +62,12 @@ void hyp_c_callback(void *ret_addr, void *regs) if (ivect[n]) { spl_t spl = splx(intpri[n]); - asm ("lock; andl %1,%0":"=m"(hyp_shared_info.evtchn_pending[i]):"r"(~(1<<j))); + asm ("lock; and %1,%0":"=m"(hyp_shared_info.evtchn_pending[i]):"r"(~(1UL<<j))); ivect[n](iunit[n], spl, ret_addr, regs); splx_cli(spl); } else { printf("warning: lost unbound event %d\n", n); - asm ("lock; andl %1,%0":"=m"(hyp_shared_info.evtchn_pending[i]):"r"(~(1<<j))); + asm ("lock; and %1,%0":"=m"(hyp_shared_info.evtchn_pending[i]):"r"(~(1UL<<j))); } } } |