[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 05/12] x86: provide executable fixmap facility
On Wed, Jan 29, 2020 at 08:20:27PM +0000, Wei Liu wrote: > > +void __set_fixmap_x( > + enum fixed_addresses_x idx, unsigned long mfn, unsigned long flags) > +{ > + BUG_ON(idx >= __end_of_fixed_addresses_x || idx <= FIX_X_RESERVED); > + map_pages_to_xen(__fix_x_to_virt(idx), _mfn(mfn), 1, flags); > + > + /* Generate a symbol to be used in linker script */ > + asm ( ".equ FIXADDR_X_SIZE, %c0; .global FIXADDR_X_SIZE" > + :: "i" (__end_of_fixed_addresses_x << PAGE_SHIFT) ); The (__end << SHIFT) part can be replaced with FIXADDR_X_SIZE (the macro defined in fixmap.h) directly. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |