Changeset 53634f9 in mainline for kernel/arch/ppc32/src/mm/tlb.c


Ignore:
Timestamp:
2009-01-31T13:24:32Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1e241723
Parents:
896ad9f
Message:

make RANDI a generic macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/tlb.c

    r896ad9f r53634f9  
    4141#include <print.h>
    4242#include <symtab.h>
     43#include <macros.h>
    4344
    4445
     
    130131
    131132
    132 /** Pseudorandom generator
    133  *
    134  * A pretty standard linear congruential pseudorandom
    135  * number generator (m = 2^32).
    136  *
    137  */
    138 #define RANDI(seed) \
    139         ({ \
    140                 (seed) = 1103515245 * (seed) + 12345; \
    141                 (seed); \
    142         })
    143 
    144 
    145133static void pht_insert(const uintptr_t vaddr, const pte_t *pte)
    146134{
Note: See TracChangeset for help on using the changeset viewer.