mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
Reserve some space for the stack in the region we recover from the initial
bootloader. Submitted by: dfr
This commit is contained in:
parent
0cae710c49
commit
b6542d2e4f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40621
@ -24,7 +24,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: main.c,v 1.5 1998/09/26 10:51:36 dfr Exp $
|
||||
* $Id: main.c,v 1.6 1998/10/19 09:12:41 dfr Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -81,8 +81,9 @@ main(void)
|
||||
* If this is the two stage disk loader, add the memory used by
|
||||
* the first stage to the heap.
|
||||
*/
|
||||
#define STACK_SIZE 16384
|
||||
free_region((void *)PRIMARY_LOAD_ADDRESS,
|
||||
(void *)SECONDARY_LOAD_ADDRESS);
|
||||
(void *)SECONDARY_LOAD_ADDRESS - STACK_SIZE);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user