X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fsegm.h;h=b57375b97e04fb70570a78c1f25e52f115e3c9e8;hb=10843571c724084c68d33d0438167d400cc8de2e;hp=b687c195783f74345994b033c6a47543d936b083;hpb=a2f94f569a4c99204de02814a20098a71527e913;p=bootcensus diff --git a/src/segm.h b/src/segm.h index b687c19..b57375b 100644 --- a/src/segm.h +++ b/src/segm.h @@ -1,19 +1,39 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #ifndef SEGM_H_ #define SEGM_H_ -#define SEGM_KCODE 1 -#define SEGM_KDATA 2 -#define SEGM_UCODE 3 -#define SEGM_UDATA 4 -#define SEGM_TASK 5 +enum { + SEGM_KCODE = 1, + SEGM_KDATA = 2, + SEGM_UCODE, + SEGM_UDATA, + SEGM_TASK, + SEGM_CODE16, + + NUM_SEGMENTS +}; -#ifndef ASM void init_segm(void); uint16_t selector(int idx, int rpl); void set_tss(uint32_t addr); -#endif /* ASM */ #endif /* SEGM_H_ */