Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnologyClassroom committed Apr 3, 2018
1 parent ba581f8 commit fe9ebfc
Show file tree
Hide file tree
Showing 12 changed files with 1,930 additions and 1,963 deletions.
4 changes: 2 additions & 2 deletions bootsect.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ _main:
go:
movw %cs, %ax
movw $(0x4000-12), %dx # 0x4000 is arbitrary value >= length of
# bootsect + length of setup + room for stack
# 12 is disk parm size
# bootsect + length of setup + room for
# stack 12 is disk parm size

# bde - changed 0xff00 to 0x4000 to use debugger at 0x6400 up (bde). We
# wouldn't have to worry about this if we checked the top of memory. Also
Expand Down
43 changes: 17 additions & 26 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ extern int find_ticks_for_pass();
char save[2][POP_H][POP_W];
char save2[2][POP2_H][POP2_W];

void get_config()
{
void get_config() {
int flag = 0, sflag = 0, i, prt = 0;
int reprint_screen = 0;
ulong page;
Expand Down Expand Up @@ -259,7 +258,7 @@ void get_config()
if (beepmode) { cprint(POP_Y+8, POP_X+5, ">"); }
wait_keyup();
while (!sflag) {
switch(get_key()) {
switch(get_key()) {
case 2:
/* Error Summary */
v->printmode=PRINTMODE_SUMMARY;
Expand Down Expand Up @@ -311,9 +310,9 @@ void get_config()
case 6:
/* Display DMI Memory Info */
pop2up();
print_dmi_info();
print_dmi_info();
pop2down();
break;
break;
case 7:
/* 6 - ECC Polling Mode */
popclear();
Expand Down Expand Up @@ -397,8 +396,7 @@ void popup()
tty_print_region(POP_Y, POP_X, POP_Y+POP_H, POP_X+POP_W);
}

void popdown()
{
void popdown() {
int i, j;
char *pp;

Expand All @@ -414,8 +412,7 @@ void popdown()
tty_print_region(POP_Y, POP_X, POP_Y+POP_H, POP_X+POP_W);
}

void popclear()
{
void popclear() {
int i, j;
char *pp;

Expand All @@ -431,8 +428,7 @@ void popclear()
}


void pop2up()
{
void pop2up() {
int i, j;
char *pp;

Expand All @@ -450,8 +446,7 @@ void pop2up()
tty_print_region(POP2_Y, POP2_X, POP2_Y+POP2_H, POP2_X+POP2_W);
}

void pop2down()
{
void pop2down() {
int i, j;
char *pp;

Expand All @@ -467,8 +462,7 @@ void pop2down()
tty_print_region(POP2_Y, POP2_X, POP2_Y+POP2_H, POP2_X+POP2_W);
}

void pop2clear()
{
void pop2clear() {
int i, j;
char *pp;

Expand All @@ -483,8 +477,7 @@ void pop2clear()
tty_print_region(POP2_Y, POP2_X, POP2_Y+POP2_H, POP2_X+POP2_W);
}

void clear_screen()
{
void clear_screen() {
int i;
volatile char *pp;

Expand All @@ -494,8 +487,7 @@ void clear_screen()
}
}

void adj_mem(void)
{
void adj_mem(void) {
int i;

v->selected_pages = 0;
Expand Down Expand Up @@ -538,8 +530,7 @@ void adj_mem(void)
}

/*
void performance()
{
void performance() {
extern int l1_cache, l2_cache;
ulong speed;
int i;
Expand Down Expand Up @@ -569,13 +560,13 @@ void performance()
dprint(POP_Y+5, POP_X+24, speed, 6, 0);
// Determine memory speed. To find the memory spped we use
// A block size that is 5x the sum of the L1 and L2 caches
// A block size that is 5x the sum of the L1 and L2 caches
i = (l2_cache + l1_cache) * 5;
// Make sure that we have enough memory to do the test
if ((1 + (i * 2)) > (v->plim_upper << 2)) {
i = ((v->plim_upper <<2) - 1) / 2;
}
// Make sure that we have enough memory to do the test
if ((1 + (i * 2)) > (v->plim_upper << 2)) {
i = ((v->plim_upper <<2) - 1) / 2;
}
cprint(POP_Y+7, POP_X+1, "Memory:");
Expand Down
10 changes: 6 additions & 4 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@
/* SERIAL_BAUD_RATE - Baud rate for the serial console */
#define SERIAL_BAUD_RATE 115200

/* START_FAIL_SAFE - Default 0 = normal. Change to 1 to always start in fail safe mode */
/* START_FAIL_SAFE - Default 0 = normal. Change to 1 to always start in fail */
/* safe mode */
#define START_FAIL_SAFE 0

/* BEEP_MODE - Beep on error. Default off, Change to 1 to enable */
#define BEEP_MODE 0

/* BEEP_END_NO_ERROR - Beep at end of each pass without error. Default off, Change to 1 to enable */
/* BEEP_END_NO_ERROR - Beep at end of each pass without error. Default off, */
/* Change to 1 to enable */
#define BEEP_END_NO_ERROR 0

/* FIRST_PASS_HALF_ITERATIONS - First pass twice faster / half iterations. Change to 0 to disable */
/* FIRST_PASS_HALF_ITERATIONS - First pass twice faster / half iterations. */
/* Change to 0 to disable */
#define FIRST_PASS_HALF_ITERATIONS 1

/* SCRN_DEBUG - extra check for SCREEN_BUFFER
Expand All @@ -45,4 +48,3 @@
/* and mouse support*/
/* Normally enabled */
#define USB_WAR

Loading

0 comments on commit fe9ebfc

Please sign in to comment.