Make linker function declarations a tag
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Aug 2019 18:13:07 +0000 (14:13 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Oct 2019 14:17:01 +0000 (10:17 -0400)
commit3189bc5cbadff9a9884db49174d41dc1e0d3d5f7
tree399457b76df774bb15fb56b345814d8f98fe0257
parent8bb710db69f35e5af885480feb97ef347a0273c8
Make linker function declarations a tag

This is similar to Linux's initcall().  Instead of changing the name of
the function, just tag it.  This makes it a little easier to port Linux
drivers too.

The __init tag does nothing right now.  For now, just use it as a
convention.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
12 files changed:
kern/drivers/net/bnx2x/bnx2x_dev.c
kern/drivers/net/ether8139.c
kern/drivers/net/ether82563.c
kern/drivers/net/etherigbe.c
kern/drivers/net/mlx4/main.c
kern/drivers/net/r8169.c
kern/include/linker_func.h
kern/include/linux_compat.h
kern/src/ktest/net_ktests.c
kern/src/ktest/pb_ktests.c
kern/src/net/ethermedium.c
kern/src/net/loopbackmedium.c