Added new BASE_MEM_TOP to restrict sys_vircopy() calls from BIOS.
Updated comments at PRINTF_PROC --- it works again.
This commit is contained in:
parent
808202ee30
commit
8d3e390bda
3 changed files with 9 additions and 4 deletions
|
@ -18,6 +18,7 @@
|
||||||
/* Physical memory layout. Design decisions made for the earliest PCs, caused
|
/* Physical memory layout. Design decisions made for the earliest PCs, caused
|
||||||
* memory to be broken broken into the following four basic pieces:
|
* memory to be broken broken into the following four basic pieces:
|
||||||
* - Conventional or base memory: first 640 KB (incl. BIOS data, see below);
|
* - Conventional or base memory: first 640 KB (incl. BIOS data, see below);
|
||||||
|
* The top of conventional memory is often used by the BIOS to store data.
|
||||||
* - Upper Memory Area (UMA): upper 384 KB of the first megabyte of memory;
|
* - Upper Memory Area (UMA): upper 384 KB of the first megabyte of memory;
|
||||||
* - High Memory Area (HMA): ~ first 64 KB of the second megabyte of memory;
|
* - High Memory Area (HMA): ~ first 64 KB of the second megabyte of memory;
|
||||||
* - Extended Memory: all the memory above first megabyte of memory.
|
* - Extended Memory: all the memory above first megabyte of memory.
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
* when the processor is in real mode.
|
* when the processor is in real mode.
|
||||||
*/
|
*/
|
||||||
#define BASE_MEM_BEGIN 0x000000
|
#define BASE_MEM_BEGIN 0x000000
|
||||||
|
#define BASE_MEM_TOP 0x090000
|
||||||
#define BASE_MEM_END 0x09FFFF
|
#define BASE_MEM_END 0x09FFFF
|
||||||
|
|
||||||
#define UPPER_MEM_BEGIN 0x0A0000
|
#define UPPER_MEM_BEGIN 0x0A0000
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
# define SYS_SETALARM 16 /* sys_setalarm(proc_nr,exp_time,abs_time) */
|
# define SYS_SETALARM 16 /* sys_setalarm(proc_nr,exp_time,abs_time) */
|
||||||
|
|
||||||
# define SYS_PHYSVCOPY 18 /* sys_physvcopy(vec_ptr, vec_size) */
|
# define SYS_PHYSVCOPY 18 /* sys_physvcopy(vec_ptr, vec_size) */
|
||||||
# define SYS_SVRCTL 19 /* sys_svrctl(proc_nr, req, argp) */
|
# define SYS_PRIVCTL 19 /* sys_privctl(proc_nr, ...) */
|
||||||
# define SYS_SDEVIO 20 /* sys_sdevio(port, proc_nr, buf, count) */
|
# define SYS_SDEVIO 20 /* sys_sdevio(port, proc_nr, buf, count) */
|
||||||
# define SYS_SIGRETURN 21 /* sys_sigreturn(proc_nr, ctxt_ptr, flags) */
|
# define SYS_SIGRETURN 21 /* sys_sigreturn(proc_nr, ctxt_ptr, flags) */
|
||||||
# define SYS_GETINFO 22 /* sys_getinfo(what, whereto) */
|
# define SYS_GETINFO 22 /* sys_getinfo(what, whereto) */
|
||||||
|
@ -244,7 +244,7 @@
|
||||||
/* Field names for SYS_MEMSET, SYS_SEGCTL. */
|
/* Field names for SYS_MEMSET, SYS_SEGCTL. */
|
||||||
#define MEM_PTR m1_p1 /* base */
|
#define MEM_PTR m1_p1 /* base */
|
||||||
#define MEM_COUNT m1_i1 /* count */
|
#define MEM_COUNT m1_i1 /* count */
|
||||||
#define MEM_CHAR m1_i2 /* char to write */
|
#define MEM_PATTERN m1_i2 /* pattern to write */
|
||||||
#define MEM_CHUNK_BASE m4_l1 /* physical base address */
|
#define MEM_CHUNK_BASE m4_l1 /* physical base address */
|
||||||
#define MEM_CHUNK_SIZE m4_l2 /* size of mem chunk */
|
#define MEM_CHUNK_SIZE m4_l2 /* size of mem chunk */
|
||||||
#define MEM_TOT_SIZE m4_l3 /* total memory size */
|
#define MEM_TOT_SIZE m4_l3 /* total memory size */
|
||||||
|
|
|
@ -102,8 +102,11 @@
|
||||||
#define ENABLE_BINCOMPAT 0 /* for binaries using obsolete calls */
|
#define ENABLE_BINCOMPAT 0 /* for binaries using obsolete calls */
|
||||||
#define ENABLE_SRCCOMPAT 0 /* for sources using obsolete calls */
|
#define ENABLE_SRCCOMPAT 0 /* for sources using obsolete calls */
|
||||||
|
|
||||||
/* Which process should receive diagnostics from the kernel and system? */
|
/* Which process should receive diagnostics from the kernel and system?
|
||||||
#define PRINTF_PROC TTY
|
* Directly sending it to TTY only displays the output. Sending it to the
|
||||||
|
* log driver will cause the diagnostics to be buffered and displayed.
|
||||||
|
*/
|
||||||
|
#define PRINTF_PROC LOG_PROC_NR /* TTY or LOG_PROC_NR */
|
||||||
|
|
||||||
/* NR_CONS, NR_RS_LINES, and NR_PTYS determine the number of terminals the
|
/* NR_CONS, NR_RS_LINES, and NR_PTYS determine the number of terminals the
|
||||||
* system can handle.
|
* system can handle.
|
||||||
|
|
Loading…
Reference in a new issue