Commit Graph

9 Commits

Author SHA1 Message Date
Brandon Curtis
5e9f4470c7 Use U3_OS_LoomBits To Set Reserved Memory Size
The size and starting position of Urbit's reserved memory block is set by `U3_OS_LoomBits` and `U3_OS_LoomBase` in `include/c/portable.h`.

`U3_OS_LoomBase` is referenced in `include/noun/allocate.h` and sets the position in memory of u3_Loom.  This is good.

However, `U3_OS_LoomBits` is not actually used to set the size of the reserved memory block.  Instead:

in `include/allocate.h`,
 - `u3a_bits` is defined
 - `u3a_bits` → `u3a_bytes`
 
in `noun/manage.c`, 
 - `u3a_bytes` → `len_w` in `_cm_init()`
 - `len_w` sets the reserved memory block size

This proposal puts `U3_OS_LoomBits` back to work by defining `u3a_bits` with it.
2016-08-19 04:55:06 -07:00
C. Guy Yarvin
35a385e81c Fully shifted over to modern typed namespace. 2016-02-03 20:51:01 -08:00
C. Guy Yarvin
b26fd40636 More typed .^. 2016-02-03 13:33:43 -08:00
C. Guy Yarvin
4b92cd2685 Making typed .^ a little less fake. 2016-02-02 11:52:10 -08:00
C. Guy Yarvin
8a601ffd19 Change %rock to %sand. 2015-12-29 14:52:22 -05:00
Raymond Pasco
ae0b606a42 Merge branch 'memory-bug' into test 2015-07-15 15:33:56 -04:00
Raymond Pasco
ffd2abbbe8 ifdef out watermark stuff 2015-07-15 15:14:41 -04:00
C. Guy Yarvin
8056960881 Initial commit of memory-bug. 2015-07-15 15:14:41 -04:00
Philip C Monk
9edda1bb73 descriptive names for c files
fixes #294
2015-06-23 21:29:11 -04:00