Remove old PER_CPU_THING
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Sep 2017 21:03:38 +0000 (17:03 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 29 Sep 2017 14:00:03 +0000 (10:00 -0400)
This might have been from Ivy.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/env.c

index c2382f3..0623f3e 100644 (file)
@@ -91,16 +91,6 @@ env_setup_vm_error_i:
        return -ENOMEM;
 }
 
-#define PER_CPU_THING(type,name)\
-type SLOCKED(name##_lock) * RWPROTECT name;\
-type SLOCKED(name##_lock) *\
-(get_per_cpu_##name)()\
-{\
-       { R_PERMITTED(global(name))\
-               return &name[core_id()];\
-       }\
-}
-
 /* Frees (decrefs) all memory mapped in the given range */
 void env_user_mem_free(env_t* e, void* start, size_t len)
 {