Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu access

From: Andi Kleen
Date: Mon Jun 09 2008 - 15:12:35 EST


Christoph Lameter <clameter@xxxxxxx> writes:

> The problem is that offsets relative to %gs or %fs are limited by the
> small memory model that is chosen.

Actually they are not. If you really want you can do
movabs $64bit,%reg ; op ...,%gs:(%reg)
It's just not very efficient compared to small (or rather kernel) model
and also older binutils didn't support large model.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/