diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-04-19 21:11:27 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-04-19 21:11:27 +0000 |
commit | ee7d2452f333a8f9f75fb6fb204022834fbcaadf (patch) | |
tree | a25d0e247c403210f30a02e0d64d9318aedd1057 /xenolinux-2.4.21-pre4-sparse/include/asm-xeno | |
parent | afb32424f491d60cad70f27f7b79e8828ea9238b (diff) | |
download | xen-ee7d2452f333a8f9f75fb6fb204022834fbcaadf.tar.gz xen-ee7d2452f333a8f9f75fb6fb204022834fbcaadf.tar.bz2 xen-ee7d2452f333a8f9f75fb6fb204022834fbcaadf.zip |
bitkeeper revision 1.182 (3ea1bb7f98xr7aYRE_Mk3txa3RGZrg)
Many files:
Fixed the networking code in a number of ways: (1) Rings are now allocated in Xen space so there's no need to copy_to,from_user in correct domain context; (2) the receive PTE checking has been redone and should now actually be correct :-)
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/include/asm-xeno')
-rw-r--r-- | xenolinux-2.4.21-pre4-sparse/include/asm-xeno/fixmap.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/fixmap.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/fixmap.h index 0945783047..eee16cb240 100644 --- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/fixmap.h +++ b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/fixmap.h @@ -43,6 +43,10 @@ enum fixed_addresses { FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, #endif FIX_BLKRING_BASE, + FIX_NETRING0_BASE, + FIX_NETRING1_BASE, + FIX_NETRING2_BASE, + FIX_NETRING3_BASE, __end_of_permanent_fixed_addresses, __end_of_fixed_addresses }; @@ -70,27 +74,13 @@ extern void __set_fixmap (enum fixed_addresses idx, #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) -extern void __this_fixmap_does_not_exist(void); - /* * 'index to address' translation. If anyone tries to use the idx * directly without tranlation, we catch the bug with a NULL-deference * kernel oops. Illegal ranges of incoming indices are caught too. */ -static inline unsigned long fix_to_virt(const unsigned int idx) +static inline unsigned long fix_to_virt(unsigned int idx) { - /* - * this branch gets completely eliminated after inlining, - * except when someone tries to use fixaddr indices in an - * illegal way. (such as mixing up address types or using - * out-of-range indices). - * - * If it doesn't get removed, the linker will complain - * loudly with a reasonably clear error message.. - */ - if (idx >= __end_of_fixed_addresses) - __this_fixmap_does_not_exist(); - return __fix_to_virt(idx); } |